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
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 ,
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");
}
}
Hello,
This link refers to the new client-side api for v9 of Dynamics 365:
docs.microsoft.com/.../setactiveprocess
Hope it helps!
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.
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..
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
dkrishna
6