how can I check an attachment on requested item table attached or not in every 5 minutes for 40 days from workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 06:31 AM
how can I check an attachment on requested item table attached or not in every 5 minutes for 40 days from workflow
Need to run the gliderecord for checking attachment after every 5 mins for 40 days if attachement is not there on the record for 40 days then cancel the request and RITM from workflow.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 03:19 AM
Its a document that has to be attached by the requester over an email or manually to the task, through workflow just want to check whether attachment has been attached by the requester or not, if user hasn't attached the attachment, workflow should continuously check for attachment for next 40 days and once the attachment is attached an approval will be triggered for approving the attachment by intended gruop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 03:24 AM
Hi,
so did you try logic shared above for workflow?
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
04-12-2022 03:27 AM
but how can i check it for 40 days?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 05:18 AM
Hi,
keep a workflow scratchpad variable to store the counter and start of the workflow
increment counter by 1 daily
Now how to check if day is completed; get current date and compare with workflow scratchpad date variable; if it's more then increment the count
Stop the workflow when counter reaches 40
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader