Flow Designer Execute script in If Clause
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 01:33 PM
Hi,
I am trying to convert the existing workflow into Flow designer. In the current workflow, there is a IF script that has some logic. How do I replicate that logic within the IF script of the flow designer?
In short, I need to write the custom logic which returns true or false in Flow designer IF condition
Thanks
- Labels:
-
Now Platform App Engine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2020 12:49 PM
Hi Maryc,
Use If flow logic to execute a block if a condition is true. For example, if a request is approved, execute the block to fulfill the request.
To add If flow logic to a flow:
- Click the Select to add an Action, Flow Logic, or Subflow link.
- Click the Flow Logic button.
- Select the If menu item.
Configure the If flow logic with a friendly, readable Condition label and set the conditions.
If no Condition label is set, Flow Designer constructs a branch description using the conditions:

If the Condition label has a value, Flow Designer uses the Condition label for the branch description:

To add actions or additional flow logic to an If branch, click the Add an Action or Flow Logic button for the branch. Configure the action.

Please mark correct or helpful if this solves your issue.
Thanks
Swapnil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 12:04 AM
Hi maryc,
I am facing the same issue. I want to build an IF condition in a Flow for "Parent is empty" on an alert. I can access the alertGR, but it does not have "is empty" as an option in the condition builder. So I'd like to just script the IF condition, but this doesn't seem possible, which I find strange. We you able to figure this out? Thanks!
UPDATE:
actually this can be done with the condition builder, you just leave the field blank. So for "alertGR>Parent is empty", you build it like this:
Still would like to know if it's possible to script an IF condition in a Flow though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 09:26 PM
This is my workaround, before the IF condition you set a flow variable. Setting the flow variable can be scripted. Then in the IF condition compare against the flow variable you just set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2022 01:59 PM
This is also what I ended up using. Works well although it would be useful if we could script the fields in the If activities.