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

difference between enable rule vs display rule in ribbon workbench

If i create one record that created record date is older than 3 days, then I want to perform some operation with the help of business rule.