引用链接: OnProcessStatusChangeEvent 我已经通过将其添加到如下所示的OnLoad事件表单中进行了检查,但没有任何反应. Xrm.Page.data.process.addOnProcessStatusChange(setProbablityOnFinish); 还有其他解决方法吗?解决方案确保像这样实现 eventhandler ,它将起作用. function OnLoad(){Xrm.Page.data.process.addOnProcessStatusChange(statusOnChange);}函数statusOnChange(){状态= Xrm.Page.data.process.getStatus();如果(状态==完成"){//在这里写你的逻辑//}} I am using Dynamics 365 online instance to integrate sales process. I have one condition where I need to change the Probability field value to 100 when user clicks on Finish button in Close Process Stage.I have done some research and found that (OnProcessStatusChange event) can help to get business process flow status change (statuses: Active, Finished, or Aborted)Ref Link: OnProcessStatusChangeEventI have checked this by adding this to form OnLoad event like below, but nothing happens.Xrm.Page.data.process.addOnProcessStatusChange(setProbablityOnFinish);Is there any other solution? 解决方案 Make sure you implement the eventhandler like this, it will work.function OnLoad() { Xrm.Page.data.process.addOnProcessStatusChange(statusOnChange);}function statusOnChange() { status = Xrm.Page.data.process.getStatus(); if (status == "finished") { //Write your logic here// }} 这篇关于如何在Dynamics CRM中获取“流程完成按钮"事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-14 22:44