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.

How to map Variable Set variables to table columns

Kentaro Numata
Tera Guru

Hello, It's Kentaro.

 

I create catalog items with Record Producer and manage variables with Variable Sets.
I would like to register the entered value in Incident, but it does not work.
I tried using Variable Set's Catalog Client Script and Incident's Business Rule, but without success.

 

Sorry to ask such a basic question.

I would like to know how to solve this problem.

 

スクリーンショット 2023-10-24 11.08.10.png

 

Thanks,
Kentaro.

2 ACCEPTED SOLUTIONS

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

You can add some lines into the Record Producer Script to achieve it.

Sample below.

TaiVu_0-1698121489656.png

 

Sample Script

current.u_target_user = producer.it01_target_user;
current.u_target_user_organization = producer.it01_target_user_organization;
current.u_organization = producer.it01_organization;
current.u_target_user_organization_other = producer.it01_target_user_organization_other;

 

Just add more fields into the script per your requirement.

 

Let me know if it works for you.

 

Cheers,

Tai Vu

View solution in original post

Sorry, I found it!!

スクリーンショット 2023-10-24 16.20.28.png

View solution in original post

8 REPLIES 8

Kentaro Numata
Tera Guru

Hi, @Tai Vu !

Thank you fore replying.

 

My English was wrong.
I would like to know how to display the following screen.

スクリーンショット 2023-10-24 16.11.11.png

 

>My suggestion would be to place the script within the Record Producer. The simple rationale behind this is, why create a Business Rule when we can accomplish the same goal using the Record Producer we've already set up? 😉

I see, I understand.

There's no need for a Business Rule when you can complete it with a Record Producer.

 

Thanks,

Kentaro.

Sorry, I found it!!

スクリーンショット 2023-10-24 16.20.28.png

@Kentaro Numata Haha, there's absolutely no problem at all. I'm glad that you've figured it out. 🎉

 

Cheers, 🍻

Tai Vu

Thank you @Tai Vu !!!