Flow Designer: How do you update a date/time field to the current date and time?

adeh
Tera Contributor

I have just started to look at the new Flow Designer in Kingston. I wanted to set up an action to update a date/time field on the form to the current date and time, but can't see how you can do this. The flow designer wants you to input an actual date and time, which obviously is fixed. How can I workaround this?

7 REPLIES 7

Tim Deniston
Mega Sage
Mega Sage

Try putting this in the field: javascript:gs.nowDateTime()

find_real_file.png

I entered the code as suggested but it didn't appear to do anything. Does this actually work in the Flow Designer, or just in the older Workflow Designer?

Yes, I have that script working correctly in a test/demo flow. 

 

Is your flow inside a scoped application? gs.nowDateTime() is probably not accessible in an application scope. 

Deepak Ingale1
Mega Sage

You can configure this inside the action as well via script.