How to call the one business process flow to another business process flow in dynamic CRM?

Through the JavaScript we can call the one business process flow to another.

Step 1: Just take the one business process GUID.





function setProcess(executionContext)

{

var formContext = executionContext.getFormContext();

var  outcome= formContext.getAttribute("arshad_fname").getValue();

if (outcome == Approve)

{

formContext.data.process.setActiveProcess("5DCFB30D-D987F-4D37-90CA-F93B2567117B", callBackFunction);

}

function callBackFunction(result) {
if (result == "success"){
alert("BPF successfully changed");
}else{
alert("Error");
}

}

Note 1: Based on the B businesses process flow option set value I am calling to the another business process flow. 

Note 2: While taking the business process GUID first length should be eight character and last digit should be twelve character long.


  









 

Comments

Popular posts from this blog

latest dynamics 365 interview questions for more than 2 years of experience

difference between enable rule vs display rule in ribbon workbench

How to send the birthday mail to the user in Dynamic CRM?