Switch Process in CRM Dynamics with Javascript error -


i trying switch selected process user's option set selection based on code below:

xrm.page.getattribute("processid").setsubmitmode("always"); xrm.page.getattribute("processid").setvalue(workflowid);  xrm.page.getattribute("stageid").setsubmitmode("always"); xrm.page.getattribute("stageid").setvalue(processstageid);  xrm.page.data.entity.save(); 

however, when code runs following error:

the traversed path should end new active stage. 

i have checked guids processid , stageid , believe valid.

any ideas why error occurs , process not change?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -