How to reuse an existing catalog item form in another form

major li
Tera Contributor

Hi Community,

Greetings. 

I have a request towards catalog item. I am asked to set up a new form.  In the fulfillment phase, an existing form should be used. Due the complexity of this existing form, I could not simply use the workflow behind it.

Is there some kind of similar concept like "catalog item API" so that I could pass those input to the variable of the existing form in fulfillment? Or if you were facing this challenge, how would you handle it?

Thanks. 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@major li 

You can use CART API or CartJS to submit a catalog item via script

CartJS - Scoped 

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

4 REPLIES 4

Rafael Batistot
Tera Sage

Hi @major li 

 

May you use Variable Sets (Partial Reuse). If the “complexity” of your existing form comes from many variables, extract them into Variable Sets.

Assign the same Variable Set to multiple catalog items. This gives true reuse of form fields, though you still need to consider how workflows are handled.

hi @Rafael Batistot ,

this could be hard. there are too many script behind these variables. It is like re-build a new form in this solution. 

Ankur Bawiskar
Tera Patron
Tera Patron

@major li 

You can use CART API or CartJS to submit a catalog item via script

CartJS - Scoped 

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @major li 

Yes, you can use CartJS / API for same.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************