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.

catalog item field auto populated

Deepika Ravindr
Tera Contributor
 
2 ACCEPTED SOLUTIONS

@Deepika Ravindr 

That's fine.

What I am saying is there is no script required to auto-populate the text variables whenever user selects the catalog item reference variable.

If you use Utah's auto-populate feature it will happen without script.

Did you explore that?

I already provided solution in the form of link for that feature. you just need to configure it for your text variables as dependency on the reference variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Vishal Birajdar
Giga Sage

Hello @Deepika Ravindr 

 

The solution given by Ankur is more feasible and easy.

 

e,g.,  If you want to populate 'Short description' of catalog item which you have selected in "Please select catalog item to update" then go to the Variable "Short description" (your variable name may be different) and use "Auto Populate" option.

 

Dependent Question =  Please select catalog item to update

Reference = will be auto populate

Dot walk path = short description

 

Please see the below screenshot

 

VishalBirajdar7_0-1694435366787.png

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

8 REPLIES 8

@Deepika Ravindr 

That's fine.

What I am saying is there is no script required to auto-populate the text variables whenever user selects the catalog item reference variable.

If you use Utah's auto-populate feature it will happen without script.

Did you explore that?

I already provided solution in the form of link for that feature. you just need to configure it for your text variables as dependency on the reference variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

Awesome, that's working. Thank you so much!

 

Thanks,

Deepika

shivaprasad98
Tera Contributor

Hi Deepika,

Fetch them using Script from server to client and auto-populate.
Table: sc_cat_item.

Thanks

Vishal Birajdar
Giga Sage

Hello @Deepika Ravindr 

 

The solution given by Ankur is more feasible and easy.

 

e,g.,  If you want to populate 'Short description' of catalog item which you have selected in "Please select catalog item to update" then go to the Variable "Short description" (your variable name may be different) and use "Auto Populate" option.

 

Dependent Question =  Please select catalog item to update

Reference = will be auto populate

Dot walk path = short description

 

Please see the below screenshot

 

VishalBirajdar7_0-1694435366787.png

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates