Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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