How to build conditional logic in Flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2025 06:37 AM
Hello All,
I am trying to configure the below logic in flow designer and need some help. Please advise.
I have a variable called "Productive Date" on a record producer.
1. If the Productive Date <= 30 days from current date (If today is Feb 21 it means Productive Date selected is on or before March 23, 2025), then record should be assigned to Group A.
2. If the productive date >30 days from current date (after Mar 23, 2025), then record should be assigned to Group B. However when it reaches 30 day mark, flow should assign the case back to Group A automatically.
Please advise how we can incorporate this logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2025 07:33 AM
Found it now, thanks. It was under flow logic..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2025 08:34 AM
Ankur, this is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2025 04:06 AM
only 1 flow variable needed.
show your inline script for Set Flow Variables
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
‎03-05-2025 06:48 PM
Hope you are doing good.
Did my reply answer your question?
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
‎02-21-2025 08:17 AM
Hi Ankur,
Sorry, need 1 more input.
So if productive state <=30 days, Assignment group = Group A, state = Ready.
>30 days, Assignment group = Group A, state = suspended
Once it reaches 30 day mark, then change assignment group to Group B, state = ready.
Do i need to create 2 flow variables, one for group and one for state?