How to check value of target field in a field map script?

Melissa Reed
Tera Contributor

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?

1 REPLY 1

Chandu Telu
Tera Guru

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,