Robust Transform - conditional script to add data to one field or another
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 11:29 PM
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.
- I am wondering if this is possible?
- 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?
- 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?
- 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?
- 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