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..
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156