- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 03:35 AM
Hello,
I have to create this workflow, and the task Retrieve Hardware must be triggered on the date mentioned in item .
any idea how to do this?
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 05:49 AM
From what I could get from your question
1) You want Catalog Task to be created on that date
Example: If date is 10th Jan 2021 so catalog task should be created on that day and your workflow should wait till that time
If yes then you can use Workflow Wait for Timer Activity with Script below
var gdt = new GlideDateTime(current.variables.Scheduled_retrieve_date);
answer = gs.dateDiff(new GlideDateTime(), gdt, true);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 07:31 AM
Hi,
You should be using Timer Activity with Script and not Wait for Condition.
I already mentioned the Timer Activity in my earlier response
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 08:15 AM
OHHHHH im so sorry 😞
I correct that and it works !!!
Thank you so much Ankur 🙂
I wish you a happy new year and a lot of success.
Nawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 08:17 AM
Glad to help and happy new year to you as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 08:18 AM
Please remember to mark appropriate response helpful as well
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader