- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2025 12:06 PM - edited ‎06-04-2025 12:32 PM
Hello Community! I am working in flow designer right now, within a 'create catalog task' action step. See in this, for the field 'due_date' I have the assignment scripted instead of from dot-walking or the dropdown/reference. What I need to do here is pull in the date that the user entered in the item/form submitted and compare that to the current date. If it's in the past or within 2 days from today, the due_date field in the created task should be 2 days from now. But then if the date that the user entered is more than 2 days from the current date, then the due date should just be set to 2 days prior to the entered date. And I would like the time for the due_date to always be set to 17:00:00(5pm) local time for the person viewing the task.
The problem > There is something wrong with my script, I can save my changes in flow designer but when I try to activate the flow I get the error 'Index 1 out of bounds for length 1'. I can't seem to figure out what this means. I would appreciate any help, ideas, or guidance ((:
*Details:
- The start_date_at_this_property variable is type date
- The due_date field on the task record is date/time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2025 10:37 PM - edited ‎06-04-2025 10:38 PM
Hi @meganmwright18
In your script, the first line should be,
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2025 10:37 PM - edited ‎06-04-2025 10:38 PM
Hi @meganmwright18
In your script, the first line should be,
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 09:02 AM
That did finally make the date change! Now troubleshooting issues with the time setting but am thankful to be over the date-change hump. Of course it was something like just an extra '_' haha