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.

About Variables Map to field

Kentaro Numata
Tera Guru

Hello, It's Kentaro.

 

I created an incident form in Record Producer.
I have a question about Map to field of Variables.

Isn't it good for two Variables to specify the same Map to field?

 

スクリーンショット 2023-10-12 11.52.15.png

 

When I set up the attached image, no data was registered in the table column.
Therefore, I created two custom columns.

 

Thanks,

Kentaro. 

1 ACCEPTED SOLUTION

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

The Map to field does not work for Variables within Variable Set.

Let's try to put these lines into the Record Producer Script.

var department = producer.representative_department || producer.department;
current.u_affiliation_company_department = department;

 

Let me know if it works for you.

 

Cheers,

Tai Vu

View solution in original post

2 REPLIES 2

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

The Map to field does not work for Variables within Variable Set.

Let's try to put these lines into the Record Producer Script.

var department = producer.representative_department || producer.department;
current.u_affiliation_company_department = department;

 

Let me know if it works for you.

 

Cheers,

Tai Vu

Hi, @Tai Vu !

Thank you for replying!!