Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Catalog item not triggering workflow

micahbugbee
Tera Contributor

I have built a catalog item that uses a flow and has several variables. One of the variables is a quantity field. The flow gets the catalog variables and then has a custom script action that receives the quantity as an input, and then creates a RITM equal to the quantity value. For each RITM, it sets the REQ as the original parent REQ, and the cat_item (Item) to another catalog item (a separate catalog item) but it does not trigger the workflow for that RITM. I have tried using the workflow API to manually trigger the workflow, and when I go to the Workflow Context that runs as a result, the Related Record does not reference the RITM that was created in my script action, but rather references the workflow name. In each RITM that is created, I also do not see the ‘Workflow Context’ nor do I see the workflow referenced in the ‘Context’ field. I greatly appreciate any insight to what may be going wrong. 

3 REPLIES 3

Rafael Batistot
Kilo Patron

Hi @micahbugbee 

 

For this case use a CartJS

 

https://www.servicenow.com/docs/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_refe...

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.

Ankur Bawiskar
Tera Patron
Tera Patron

@micahbugbee 

how are you doing/creating the new RITM in your flow?

You should use "Submit Catalog Item Request" flow action?

Share some screenshots.

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

Anand2799
Tera Guru