- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 01:50 AM
Hi All.
I am looking for assistance with defining a flow variable a date and timestamp in a new Chase Function I am desiging using Flow Designer.
I have defined the flow and it triggers as expected, waits a specific duration as expected, looks up the trigger record to check it still meets the criteria to update the trigger record as expected and then it updates a number if fields on the trigger record.
The issue I am having is getting a date and timestamp added to the trigger record which I want to populate a new "last chase sent" date and time field with the current time in local time.
The following flow variable returns the date and time in UTC:
Script:
Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:43 AM
Hello @Damian Mudge
If you set the flow variable at the time of triggered it will same in whole flow where it used but if you want to change the flow variable value then you can change it also as per your need by set the value in flow designer of that particular variable
Please Mark Helpful
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 05:58 AM
@Sanjay191 / @Community Alums
By hook or by crook I managed to get the desired output by configuring the flow variable with the following script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:04 AM
Hello @Damian Mudge
GlideDateTime API always gives the time according to you instance timezone not your system timezone so please check that also for same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:29 AM
Sanjay, Thank you, We are UK based and our instances are hosted in the UK and Ireland so I think it is returning the correct information. But I am drafting another Questions regarding flow variables. I was using the same script throughout the flow, however, I think that the Flow Variables are defined when the Flow is first triggered which is my next issue,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:43 AM
Hello @Damian Mudge
If you set the flow variable at the time of triggered it will same in whole flow where it used but if you want to change the flow variable value then you can change it also as per your need by set the value in flow designer of that particular variable
Please Mark Helpful
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 07:46 AM
Thank you. Until you called this out, I did not realise I could set flow variables at different points in the flow. I always thought they were defined at the very top of the flow. I have set flow variables at different stages and it works.