how can I check an attachment on requested item table attached or not in every 5 minutes for 40 days from workflow.

Imatiaz
Kilo Contributor

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.

 

@Ankur Bawiskar 

13 REPLIES 13

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.  

Hi,

so did you try logic shared above for workflow?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

but how can i check it for 40 days?

 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader