Action: Start Flow for RITM

Mark Brogna
Tera Contributor

I have created a custom action to start a flow for a newly create RITM within my master flow. It tests fine however, when launched from the master flow, I get the following error:

MarkBrogna_0-1747233385351.png

 

Here is my custom action:

MarkBrogna_1-1747233438220.png

 

here is my custom action within the master flow:

MarkBrogna_2-1747233485009.png

 

 

22 REPLIES 22

ursnani
Giga Guru

I would suggestion to create a Catalog item and then create all your variables in that and Submit that request and then attach your flow to that request it will be much more easier as I see you are trying to copy the variables and attachments from the original submitted RITM.

Ankur Bawiskar
Tera Patron
Tera Patron

@Mark Brogna 

you cannot create flow on 'sc_req_item' table

Did you create a subflow which accepts the table and the RITM sysId to trigger?

Why not use "Submit Catalog Item Request" flow action and it will generate a fresh REQ and RITM

Then you can attach your flow to that catalog item which you are using in earlier step.

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

for some reason the flow doesn't initiate when using the "Submit Catalog Item Request" flow action. I do have the flow set for the catalog item. Thoughts?

 

I am getting the following error when they attempt to start the flow: 

JavaScript evaluation error on: startFlowDesignerFlow(current); function startFlowDesignerFlow(current) { var flow = current.cat_item.flow_designer_flow; var flowName = flow.sys_scope.scope + "." + flow.internal_name; sn_flow_trigger.FlowTriggerAPI.fireCatalogTrigger(flowName, current); } Root cause of JavaScriptException: com.snc.process_flow.exception.PlanRecursionException : com.snc.proc...

@Mark Brogna 

did you attach flow to your catalog item which is getting submitted via "Submit Catalog Item Request" flow action?

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