Approval in Flow not triggering

riskay123
Mega Guru

I am trying to use Flow Designer for a catalog item for the first time and I have a question around approvals.

 

The new catalog item contains a variable set that is already used in many other forms. These existing catalog items use workflows that contain approvals that have scripts that reference this variable set.

Variable Set

Variable set.JPG

Workflow Script

Workflow script.JPG

I thought it would be just a matter of adding the same script to the flow and it would work but it does not seem to trigger any approvals when I run it. Can anyone tell me where I am going wrong. Have I put the script in the correct place?

 

Approval in Flow Designer

Approval in Flow Designer.JPG

 

Error when I run Test

Error log from test.JPG

 

 

 

 

1 ACCEPTED SOLUTION

Hi Vasanthariajan,

 

I got it to work!!!!

 

I changed the drag and drop from your original suggestion

Image3.JPG

 

to this and BINGO!

 

Image4.JPG

Thanks so much for your help Vasantharijan and taking the time to answer my question. I really appreciate it. 

 

View solution in original post

11 REPLIES 11

Sagar Pagar
Tera Patron

Hi @riskay123,

 

You have to use -

fd_data.flow_var.select_approvers_from_list_SM; // variable name

 

take a  look at - Scripted Approvals in Flow Designer with Flow Variables  

 

Thanks,

Sagar Pagar

The world works with ServiceNow

I tried your suggestion but it didn't work. I am sorry but I am not any good with scripting. Have I missed something?

Script1.JPG