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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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