- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2022 04:29 AM
Hi
I have successfully used 'ignore = true' before, but what is the purpose of 'ignore=true' in the attached onAfter transformation script?
Please review the attached pic.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 06:19 AM
If the script is valid and the row should not be processed, I suggest to move the script to be an OnBefore script -- not an onAfter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 05:47 AM
Hi, If you add the ignore = true the transaction should be ignored. i.e, when the transaction is received in import set table and it will check the transformation script based on your if condition the transaction should be rejected.
Mainly, it's used to validate the empty values or not / Unique id is missing validations.
Regards,
Suresh.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 05:54 AM
Thank you Suresh.
Please note this is an onAfter event - here the record is transformed and committed to the target table.
So, surely the script is pointless?
Thanks
Anton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 08:22 AM
Hi, if you want to apply the ignored state then it should be onBefore else you can directly write inside the transform map script (ie., above the field mapping tab)
Regards,
Suresh
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 06:00 AM - edited 11-07-2022 06:00 AM
Hi @Anton15 ,
I got below information from servicenow docs :-
When ignore is set to true, the current row transformation will be skipped and the remaining rows will be processed.
If you have defined an onAfter script, the onAfter script runs for the current row even if the ignore flag is set to true.
Refer link for more info :-https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/script/server-scripting/...