Custom condition in Approval Activity not working

Mishu
Tera Expert

Mishu_0-1691644479682.png

 The condition for approval is based on the above script, and modified the business rule "SNC - Run parent workflows (Approval)" with below condition:

(current.state.changesTo('more_info_required') || current.state.changesTo('approved')||current.state.changesTo('rejected')) &&(new sn_sm.SMConfiguration()).isSMRecord(current.document_id.getReferenceTable())

Mishu_1-1691644637799.png

The approved, mor einfor rquired or rejcted ..none of them are navigation to next activity that is creation of task.

Can somebody suggest what correction is required ?
Have already referred to the article Solved: Additional Condition on Approval User Activity - ServiceNow Community

 

0 REPLIES 0