Flow Designer - Conditional Field Data
Hey Everyone,
I thought I would share a neat little trick for Flow Designer which I used in a recent integration I completed.
I wanted to add a Comment, OR a Worknote, based on a condition in my subflow inputs. Normally, you could do an IF an include 2 "Update Record" actions, but this didn't work for me, as the condition wasn't something I could easily check in an IF.
What I found was this:
1. Add a single "Update Record" action to a flow
2. Choose to add both a Worknote and a Comment
3. Use the "Scripted" option
4. Inside your condition, write a condition with one ONE return, if it's true
Run your flow and check the outcome:
As you can see, Only the "true" outcome is fired.
This is a great shortcut to avoiding multiple "If / Else" statements for different field updates, and even lets you do conditions on stuff that you might not be able to otherwise.
Hope this has been helpful!
from your Fladvocate Leader!
- Upside-down Andrew
https://www.servicenow.com/community/now-platform-articles/flow-designer-conditional-field-data/ta-p/2324529