- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:00 AM
The business requirement is to allow fulfillers to create manual catalog tasks for a specific RITM for any reason. The workflow for the RITM needs to wait until all of the manual tasks are complete before closing the RITM. In the current workflows, this is accomplished by a "Wait for Condition" script step before closing the RITM.
To do the same thing in Flow, I've created a custom action using the same script, but when I test it, it always returns false and I don't know why. Can someone help me spot what is wrong?
Action input = RITM sysid (GUID data type)
Action output = hasManualTasks (True/False data type)
I put in some logging and verified the script is working correctly; if there are open tasks it follows the true route and if not, if follows the false route.
And since someone will mention it, I do realize the true/false on the workflow is different from the flow script. I've tried it both ways in the flow script with the same result, it always returns false.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:18 AM
Wow, I just found the answer - I used capital letters for the output when it is all lower case. It's working now!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:20 AM
@gjz You are using Label to set Output instead of the name.
Set the output as follows.
if(sc.next()){
outputs.hasmanualtasks=true; //use variable name instead of label
}
else
{
outputs.hasmanualtasks=false; //use variable name instead of label
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:18 AM
Wow, I just found the answer - I used capital letters for the output when it is all lower case. It's working now!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:20 AM
@gjz You are using Label to set Output instead of the name.
Set the output as follows.
if(sc.next()){
outputs.hasmanualtasks=true; //use variable name instead of label
}
else
{
outputs.hasmanualtasks=false; //use variable name instead of label
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 09:23 AM
Yes, I just noticed that before you answered and that is correct. I'll mark yours as correct instead of my answer, you explain it better for others who may have the same issue.