Flow Designer: How do you update a date/time field to the current date and time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2018 05:21 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2018 05:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2018 06:20 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2018 06:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2018 05:55 AM
You can configure this inside the action as well via script.