Overall, I am trying to progress the Business process flow to the next stage (or better, to the stage I want) when a certain field (a custom status field) is a specific value, e.g. "Pending"
I've been looking at the Client API help and know how to use at least:
Xrm.Page.data.process.moveNext();
I see people recommending to use the Xrm.Page.getAttribute("fieldname"), but none of my fields are available under the getAttribute.
The specific status field I want to check is under the business process flow and also just on the page.
Question 1) How do I correctly use the getAttribute function and then use the .getValue() on it?
Question 2) It would be nicer to use the .setActiveStage() function over .moveNext(). How do I properly use the setActiveStage?
Thanks!
*This post is locked for comments
I have the same question (0)