Robust Transform - conditional script to add data to one field or another

Kit G
Mega Guru

Hi,

 

I want to use a robust transform to take a user (retrieved in a temp step) and based off another value within the data (true/false) add it to one or another mapped fields.

 

  1. I am wondering if this is possible?
  2. Looking at the documentation I can check if an input vale is equal to 'XYZ' and return that value but I'm not sure that determines where I can map it?
  3. Also I note the sample script for condition script in the platform checks a value and returns true or false - does this indicate if it performs the mapping at all?
  4. Could I create two separate mappings to the same table just with different target fields and have them both conditional and they only run when required?
  5. I believe in some of my earlier testing I found you cannot map to the same table twice. Is this all the time or would conditional work around this limitation?

Documentation:

Temporary entity model (servicenow.com)

 

Trying to summarise what I am trying to do:

  • User A (true)
    • add user to field X and not field Y (dont overwrite field Y with empty or User A value)
  • User B (false)
    • add user to field Y and not field X (dont overwrite field X with empty or User B value)

Cheers in advance to any SNOW wizard who knows these answers! 😀

0 REPLIES 0