Workflow : Need to delay the creation of SCTASK after RITM approval with 5 days before the set date in the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 10:36 AM
Hi Snow Community,
Working on a workflow to delay the creation of SCTASK after RITM approval with 5 days before the set date in the form.
So I have a field on my Onboarding form- Start Date, which is set to be 10+ days if the request is being opened today.
The ask is to start the creation of SCTASK only when 5 business days are left to the set Start Date.
Example- Date on which request is being opened- 15th Oct; Start Date will automatically be set as- 29th Oct.(this is done)
The workflow should start at 22nd Oct.(not working).
I tried few of the Timer scripts but nothing seems to be working. Any help/suggestion would be greatly appreciated.
Thanks
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 11:03 AM
Hi there,
Here's an example from a delay we are using in workflow. Also for delaying the creation of a sc_task. Obviously it's an example, though should give you enough insight in how to achieve this without scripting.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2019 03:46 AM
Hi
I had a similar situation, and I got mad trying to implement that within the workflow itself.
I ended up using a Scheduled job, which runs nightly to check if the records (SC_TASK) needs NOW to be created.
The reason, I took a scheduler was, that the "due" date may be (manually) be changed after the RITM was created. Having a fix point in the future (with a Timer or a queued event) will prevent the option to stay flexible, if the "due" date changes (the date where you subtract your 5 days).
Going with the Scheduler, you do not need that waiting in the workflow, and are flexible with changing conditions in the RITM data.
Let me know, if that answers your querstion and mark my answer as correct and helpful, please.
Thanks and BR.
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2019 05:40 AM
Hi Dirk,
Thank you for your response.
As per your suggestion, I tried to search for some scripts but nothing seems to be working for me.
It would be really helpful, if you can share the code or guide me to the correct path from where I can get it and tweak it as per my requirement.
My Date field is called- start_time on the form (just date field) and I want the workflow to start 5 business days before the date set on this field.
Thanks in advance.