How to check value of target field in a field map script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2022 08:10 AM
I have a transform map with several fields. A few of those fields should only be updated if there is not a value in the target field already. I call another script to find the reference value to be used as the source. But I only want to call that script if the target is null. How can I access the target value in the field map script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2022 08:12 AM
Hi Melissa,
You can write the script in On Before Script for those fields and added it from onbefore Transform scripts itself
Check the below link
https://community.servicenow.com/community?id=community_question&sys_id=62170c741b07601038739979b04bcb75
Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,