Ignore row if Coalesce field is empty in source table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 08:37 PM
Hi Now Community,
I have a transform map where one field is marked as a Coalesce and Create new record on empty coalesce fields is unchecked still the records are getting inserted / updated.
Is there anything I'm missing here ?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 09:54 PM
Hi,
If coalesce field is empty then that checkbox should work i.e keeping it unchecked
You can also use onBefore transform script
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
// Add your code here
if(source.u_field.nil())
ignore = true;
})(source, map, log, target);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:19 PM
Hello Abdul,
Can you please once set the Choice action as Reject and check if it is restricting the records from creating.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:41 PM
Hi Mahendra,
No still inserting when set as Reject.
Thanks