Add Script in Robust Transform Map to Check Condition Before Creation/Update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 09:19 PM
Hi All,
I am using Robust Transform Map to integrate ServiceNow with Intune. Now the requirement is that based on some specific condition Intune will be able to create/update data in ServiceNow(Need to gliderecord the cmdb table to check these conditions). I will be able to achieve this with scripting but unable to figure out where to write script which will check condition before record creation/update in Robust Transform Map.
Any help will be much appreciated.
Regards,
Debjit
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 10:12 PM - edited 03-12-2023 10:14 PM
We can write onBefore transform script on your transform map, according to you condition :
Hope this helps
Thanks and Please Mark Helpful
Anmol Saraswat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 10:58 PM
Hi @Anmol8 ,
Thank you very much for your response.
By specifying the 'Condition Script' I can control the creation or whole record. But is there anything I can do at a field level. For an example, "the field 'xyz' will only update if field 'abc' is true in cmdb."
Also, like Transform Script can I specify 'action = insert'{ignore = true;} type configuration in the 'Condition Script'.
Thanks and Regards,
Debjit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 11:41 PM
1. I'm not pretty much sure about this if it works on field level, but I think you may proceed by gliding into table an check the value there itself(Create Script Include).
2. Yes you can configure the same here too.
Thank,
Anmol