Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Add Script in Robust Transform Map to Check Condition Before Creation/Update

DebjitGhosh31
Tera Contributor

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

3 REPLIES 3

Anmol8
Mega Guru

Hi @DebjitGhosh31 

We can write onBefore transform script on your transform map, according to you condition :

 

 

 

Hope this helps

Thanks and  Please Mark Helpful

Anmol Saraswat

Anmol8_0-1678684336455.png

 

 

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

Anmol8
Mega Guru

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