Flow Designer - using Flow Variable as date time and compare with date time fields

Rajesh Mudam
Mega Guru

Hi Team,

In change request, on change of state to implement, I'm capturing date and time in a flow variable string type (as we don't have date/time type in flow variable) "script: var now = new GlideDateTime(); return now.getDisplayValue();" and comparing these value with planned start date in next IF condition. in IF condition I'm using string to date available transforms. But, getting an error in flow at IF condition.

please do needful.

 

Best Regards,

Rajesh Mudam

1 ACCEPTED SOLUTION

Rajesh Mudam
Mega Guru

Hi,

I have tried in other way, instead of comparing with 'Run Start Time' used record 'updated_on' to compare current date/time.

working fine.

 

thanks Palanikumar for your assistance.

 

Best regards,

Rajesh Mudam

View solution in original post

4 REPLIES 4

palanikumar
Giga Sage

Hi,

Are you looking for getting the current time? Flow designer has OOB data pill Run Start Time which is nothing but the date time when the flow is triggered. You can use this in your condition. Refer the screenshot:

find_real_file.png

Thank you,
Palani

Rajesh Mudam
Mega Guru

Hi Palanikumar,

 

Thanks for your reply.

does 'Run Start Time' will return the updated_on date/time or flow triggered date/time (like when the flow was actually started).

 

It returns the date/time when the flow actually start

Thank you,
Palani

Rajesh Mudam
Mega Guru

Hi,

I have tried in other way, instead of comparing with 'Run Start Time' used record 'updated_on' to compare current date/time.

working fine.

 

thanks Palanikumar for your assistance.

 

Best regards,

Rajesh Mudam