Flow not triggered by Service Catalog

petercawdron
Kilo Guru

I have a catalog item that is linked to a flow, but the flow never fires and I'm not sure why.

It all seems simple enough to set up, but nothing happens when I order an item. Have I missed a configuration step?

find_real_file.png

find_real_file.pngIf I submit a record from the portal it creates an RITM. If I then test this flow using that RITM record, the flow itself works fine and creates the catalog task record, the flow itself, though, just never gets triggered when the record is created from the portal.

Is there some system property or something I might have missed?

1 ACCEPTED SOLUTION

Okay, I've figured it out... the table sc_req_item has a business rule called Start FlowDesigner Flow that controls the activation of Flows, and it hinges on the stage being request_approved (something that's not used where I'm currently working). Once I took that into account, the flow kicked off nicely...

 

Thanks,

find_real_file.png

View solution in original post

19 REPLIES 19

Ct111
Giga Sage

Refer this post

 

https://community.servicenow.com/community?id=community_question&sys_id=38333caddb98fb445129a851ca96...

 

 

Mark my ANSWER as CORRECT n HELPFUL if it helped.

Thanks for the quick reply... If you look at the screenshots above, you'll see I've done precisely what's described in that link.

  1. Add Service Catalog as the trigger
  2. Make sure the catalog item doesn't have a workflow or an execution plan (only a flow)

If I run the following code...

var gr = new GlideRecord('sc_cat_item')
gr.get('e6108da4db6844d010a3a584059619c4')
gs.info('workflow' + gr.workflow)
gs.info('delivery_plan' + gr.delivery_plan)
gs.info('flow_designer_flow ' + gr.flow_designer_flow)

The results confirm there are no hidden/orphaned records in any of these fields causing problems..

*** Script: workflow
*** Script: delivery_plan
*** Script: flow_designer_flow 6cc0aebddbe884d03ea3cd0514961944

So I've verified that the ONLY field on the catalog item that links to a workflow, execution plan or flow IS actually pointing only at a Flow, but still it doesn't work.

Any other ideas?

If you say that you have done all the steps and tested it. I just hope that you have clicked on "ACTIVATE" button that is near "Save" button in flow designer. And once you do that then try to reattach that flow to your catalog item. Try this n let me know if it helps Mark my Answer as Correct n also Helpful if it helped

find_real_file.png

The flow is definitely active. I've tried deactivating, etc. 

I've raised a case with HI to investigate.