Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: Business process flow Javascript query...

$
0
0
Thanks Neil. I changed the code to this and it now works: Xrm.Page.data.process.addOnStageChange(StageSelected); function StageSelected() { var activeStage = Xrm.Page.data.process.getActiveStage().getName(); if(activeStage == "Develop") { alert(activeStage); Xrm.Page.getAttribute("new_status").setValue(1); } if(activeStage == "Contract") { alert(activeStage); Xrm.Page.getAttribute("new_status").setValue(2) } }

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>