Pages

Tuesday 26 December 2017

Trigger events on change stage of Business process flow in CRM2016

Display tabs on CRM2016 form based on Business process flow stage changes


// Attaching event onload of form
function onload()
{
Xrm.Page.data.process.addOnStageChange(stagechange);
Xrm.Page.ui.tabs.get("tab_2").setVisible(true);

}

function stagechange() {
alert("sucess");
Xrm.Page.ui.tabs.get("tab_2").setVisible(false);

}

No comments:

Post a Comment