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.

Unable to Map Configuration item from Portal to Incident form

Aryan
Tera Contributor

Hello all,

 

I am unable to map CI from portal to Incident ?

what am i doing wrong any please help me on this 

Aryan_0-1711609680491.png

 

7 REPLIES 7

Sujatha V M
Kilo Patron
Kilo Patron

@Aryan : Please use the below syntax in your record producer script, 

 

if(producer.u_configuration_item != ''){
    current.configuration_item = producer.u_configuration_item.getDisplayValue(); //Reference field
}

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 
Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

this script is run on RITM table not on incident. I want to copy CI from portal to incident record.

James Chun
Kilo Patron

Hey @Aryan,

 

Try changing the name of the variable to cmdb_ci 

 

Cheers

My bad! Thank you for that! 

 

@Aryan Please use this, 

if(producer.u_configuration_item != ''){
    current.cmdb_ci = producer.u_configuration_item.getDisplayValue(); //Reference field
}
Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.