What activity can I use in workflow to stop workflow until requestor updates request with attachment

EcFuhrmann
Tera Contributor

I have a workflow in which it needs to pause until the requestor respnds to email notification with attachments, then move the workflow to the next task. Is there a way to use "If" activity todo this with a script? Is there another activity that can put the condition in? 

 

Looking for help on this one as I have found nothing on the internet or away todo it though testing. 

 

Eric

1 ACCEPTED SOLUTION

Since you are using an inbound action you could have it set the value of a field or variable, then in the workflow you would just need a wait for activity until that field/variable is not empty.  You could also have a Business Rule on the attachment table that updates a field or variable under certain conditions.

View solution in original post

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

Is the customer replying to the email, then an inbound action is adding the attachments, or are they being added to the record manually?  The sc_req_item record is updated when an attachment is added, so that will cause the workflow to 'nudge'.  I'm thinking of a loop - wait for the record to be updated, then an if script to check for an attachment, resulting in going back to the wait for, or on to the next activity.

EcFuhrmann
Tera Contributor

The reqeustor would be replying to the notification from Servicenow with attachments, once they do that the workflow would move to next stage for review. Currently i have a task at a group "pending requestor to add attachements" which does not work well from a management of queue stand point. 

 

Since you are using an inbound action you could have it set the value of a field or variable, then in the workflow you would just need a wait for activity until that field/variable is not empty.  You could also have a Business Rule on the attachment table that updates a field or variable under certain conditions.