Add +5 Working Business Day in Workflow Designer [toggle scripting]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2025 06:38 PM
Hi everyone,
I have a question regarding date calculation in my workflow. Right now, I'm using the line addDays(5) in my toggle script to add 5 days to the current date, and it's working as expected. However, the requirement is to add 5 business days, excluding Saturdays and Sundays. Does anyone know help me how to achieve this?
Please refer to the image below for more context. Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:46 AM
Hi Ankur, Thanks for the information! I tried it in the fix script and it's working well—the date is displaying correctly. However, when I use the same logic in the toggle script, the date doesn't appear. Could you please guide me on how to properly return the value to the date field in the toggle script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:58 AM
Hi Ankur, Thanks for the information! I tried it in the fix script and it's working well—the date is displaying correctly. However, when I use the same logic in the toggle script, the date doesn't appear. Could you please guide me on how to properly return the value to the date field in the toggle script? Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 01:00 AM
Hi Ankur may I ask how can I return the value on the date field in my incident form? because right now its working fine if I test it on Fix Script.