- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2022 08:36 PM
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
Workflow Script
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
Error when I run Test
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 03:10 PM - edited 12-22-2022 03:11 PM
Hi Vasanthariajan,
I got it to work!!!!
I changed the drag and drop from your original suggestion
to this and BINGO!
Thanks so much for your help Vasantharijan and taking the time to answer my question. I really appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2022 09:06 PM - edited 12-18-2022 09:58 PM
Please use the below syntax for the rules which returns the approvers from the variable value. Please replace the variable_name value with your actual variable and try.
return "ApprovesRejectsAnyU["+fd_data.trigger.current.variables.variable_name+"]";
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 05:35 PM
Thanks for your reply Vasantharijan. I have tried your suggestion but it still does not work. Sorry I am not very good when it comes to scripting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 10:21 PM
As you are using Get Catalog Variable action in Step 1. So please use the below syntax
return "ApprovesRejectsAnyU["+fd_data._1__get_catalog_variables.select_approvers_from_list_SM+"]";
Please refer to the screenshot below.
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 07:01 PM
Hi Vasantharijan,
I tried making the suggested changes but the approval still does not trigger. I get this error.