BPF(Business Process Flow)相关的JS 为Stage添加changed或者selected事件: function fnOnLoad() { Xrm.Page.data.process.addOnStageChange(fnStageChanged);//change事件 Xrm.Page.data.process.addOnStageSelected(fnStageSelected);//select事件 } function fnStageChanged(execCo…
var entityname =window.parent.Xrm.Page.data.entity.getEntityName();//获取实体名称 var sampid = window.parent.Xrm.Page.data.entity.getId(); //取实体id var sampid = window.parent.Xrm.Page.getAttribute("ep_no").getValue();//取对应字段值…