1. Click [close as won] on opportunity form.
2.ScriptA setFlgFunc : Set bRunflag = 1 when [close as won] is clicked.
3.ScriptA exeOnSave : if bRunflag = 1 then return. else Set updateFlg = (updateFlg + 1 ) %100.
4.PluginA is run when oppo.statecode be changed :
if (m_enPreImgOP.new_updateFlg== "1000") { m_enOp.new_updateFlg= "2000"; } else { m_enOp.new_updateFlg= "1000"; }
5.PluginA tracelog is show updateFlg has be update to 1000.
6.oppo record is updated as "won" and updateFlg field's value is updated as 1 in form.
question: onsave ScriptA seems run after oppo won, does anyone have the same issue like me?
there are Plugins will run at updateflg is updated, they are run twice ......
ps: it is not happen 100% , i' ve try 30 times it has happened once.
*This post is locked for comments