The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how to auto populate catalog item field value from a decision table

nagakarthik0721
Tera Contributor

I need to auto-populate a text field in a catalog item from decision builder results. Please let me know how can I achieve this.

3 REPLIES 3

kaushal_snow
Mega Sage

Hi @nagakarthik0721 ,

 

Please use Client-callable Script Include + Catalog Client Script (onLoad or onChange) to fetch the result and auto-fill the target variable dynamically. Use GlideAjax to call your Script Include and pass relevant variable values and the catalog item sys_id.

 

Try this once and let me know. If you find this helpful, please accept this as a solution and hit the helpful button..

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

JackieZhang
Tera Contributor

Ankur Bawiskar
Tera Patron
Tera Patron

@nagakarthik0721 

decision builder is basically used to drive backend process in flow etc

but in case you want to use then you can use DecisionTable API and then you can use GlideAjax + onChange catalog client script to fetch and set

this link explains it well

How to use Decision Table from scripts 

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