date validation in flow designer

levino
Giga Guru

hi there

 

I have catalog item with a variable 'u_business_need_by_date' of Date type


in flow designer , how do i use the if condition that is

if 'u_business_need_by_date' is greater than current date then evaluate to true

i have attached a screenshot

please provide examples

Thank

Levino

1 ACCEPTED SOLUTION

Shashank_18
Mega Guru

Hi @levino ,

Create a flow variable and set the value of this variable by creating a custom action and then you can use it in your condition.

 

Within custom action you can simply return gs.nowDateTime();

 

Hope this will resolve your issue. please mark the answer help/correct if it resolves your issue.

Thanks !

View solution in original post

2 REPLIES 2

Shashank_18
Mega Guru

Hi @levino ,

Create a flow variable and set the value of this variable by creating a custom action and then you can use it in your condition.

 

Within custom action you can simply return gs.nowDateTime();

 

Hope this will resolve your issue. please mark the answer help/correct if it resolves your issue.

Thanks !

Hi Shashank

thanks for your response.

i have created the flow variable,  as a input variable, where do i set values  (return gs.nowDateTime)

also my variable on the catalog item is just of Date type, when i compare the 2 in the if condition would it cause a issue

I am new to flow designer, hence the first question

Thanks

Levino