- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 07:04 AM
Hi Team,
If assignment group is empty in incident i have flow that calls another subflow.
But i wanted to implement logic where if short description has SAP assign to separate group using existing flow designer.
Also is there any way to script in the condition of if statement in flow designer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 07:42 AM
you can use a flow variable of type true/false
Then use "Set Flow Variable" flow logic and use script to set it with true/false
Then use this Flow Variable value in IF logic
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 12:10 AM
you can have it at the beginning if you are planning to use that flow variable in subsequent flow actions.
It all depends on your requirement.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 12:11 AM
It worked Thank You. will test use cases further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 11:33 PM
That completely depends on the logic you want to implement. If, no matter what, when the flow is triggered and the short description contains SAP it has to be assigned to that group, you don't need to check on an empty assignment group. If it is for assigning only when not yet done, you do it after the check on 'assignment group = empty'. But you don't need flow variables. Just do an 'if short description contains SAP' and then an 'update incident' action.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark