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.

Transorm map field script - undefine output on record

sujatabhagat
Tera Contributor

I have to match 3 conditions while transforming the data, Serial number (made coalesce already) , then check switch in switch table and then check model in product hardware table.

When I am trying for field script for switch and the  trying to import the data with combination of two conditions its getting proper output for switch but for model its returning undefined value in record field.

FYI : Switch field script is working and I have attached as a reference.

Please help whats going wrong here. if any changes kindly help.

 

sujatabhagat_0-1705655696842.png

sujatabhagat_1-1705655756109.png

sujatabhagat_2-1705655810336.png

 

 

 

1 REPLY 1

umaaggarwal
Giga Guru

Hi,

 

Did you try  source.u_model.toString();

 

Please try this and if does not work, could you please check data type from source to target is compatible?

 

Please mark this correct and helful if it really does.

Thanks