Flow Designer - If statement condition

hongsok
Tera Contributor

Hello all,

 

I have created a flow with if statement and I got stuck on the condition.

Here are the condition:

- If user last login is more than 6 months

- If user last login is within 6 months

In flow designer, OOB has only After or Before but not Relative.

 

hongsok_0-1692720283888.png

I would appreciate your help.

 

Regards,

Hong

 

1 ACCEPTED SOLUTION

@hongsok Didn't have any handy.

 

I'll try one and let you know.

Thanks,
Anvesh

View solution in original post

5 REPLIES 5

AnveshKumar M
Tera Sage
Tera Sage

Hi @hongsok ,

You might need to create a custom script action for this, which checks the last login time and returns true/false (string type not Boolean and  true means > 6 months and false means within 6 months) as output of the action.

 

Then you can use this output in IF condition to move further.

 

Thanks,
Anvesh

hongsok
Tera Contributor

Hi Anvesh,

 

Do you have the sample of the script?

@hongsok Didn't have any handy.

 

I'll try one and let you know.

Thanks,
Anvesh

hongsok
Tera Contributor

Thanks