How to build conditional logic in Flow designer

dvelloriy
Kilo Sage

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.

 

13 REPLIES 13

Found it now, thanks. It was under flow logic..

Ankur, this is not working.

 

dvelloriy_0-1740155628638.png

 

@dvelloriy 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@dvelloriy 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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?