Notifications
Announcements
No record found.
Hello Everyone !
Hope all of you fine!
Can any anyone tell me how to switch BPF through JS when form load?
I am beginner as JS developer in Dynamics.
*This post is locked for comments
Hi,
Here are some links to change BPF using JS
dynamicsofdynamicscrm.com/.../change-business-process-flow-using-javascript
community.dynamics.com/.../how-to-programmatically-switch-the-business-process-flow-in-dynamics-365
www.powerobjects.com/.../business-process-flows-and-javascript
Hope this will help..
Hello!
The references which you given are old. Now i heard that Microsoft has changed JavaScript architecture for dynamics due to which controls have changed. When i use methods in which are given in documentation of Microsoft so errors occur so kindly tell me updated reference for this.
Hello,
This link refers to the new client-side api for v9 of Dynamics 365:
docs.microsoft.com/.../setactiveprocess
Hope it helps!
Hi ,
Check with this -
function OnloadForm(Executioncontext) { var formcontext = Executioncontext.getFormContext(); formContext.data.process.setActiveProcess(processId, callbackFunction); // Pass GUID of process } function callbackFunction(result) { if(result == "Success") { alert("Success"); } else { alert("failed"); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2