We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How can I trigger an error in a transform map script in ServiceNow

Prathmeshda
Tera Guru

How can I trigger an error in a transform map script in ServiceNow so that the record goes to the 'onReject' stage instead of calling 'onForeignInsert' or 'onChoiceCreate'? I want to validate a field (like status = 'Pending') and prevent further processing if the value is invalid ?

0 REPLIES 0