How do I trigger an email once a task completes when I submit a catalog item request via flow design

Mike LHCG1
Tera Contributor

Let me provide more detail.

I need to schedule a  task to run weekly at a certain time on a certain day that go's to an\ assignee to complete some work. Once that work is complete and the task is closed, I need to send an email to a manager to let them know it's been completed.

 

I created a catalog item that includes a task for the work. Then in Flow Designer, I scheduled that catalog item to run every Tuesday at 1:30pom (see attached). So far so good, it works great. Now, however, when the person that gets the task for that catalog item completes the work and closes the task, I need to send the email. This is where I need some assistance.  I'm not sure what I can use to trigger that email to send. My "Action" in Flow Designer was related to the catalog item. Without doing scripting, is there some way to query the task for that catalog item to see if it's been closed so I can use that as a trigger for the email...or is there a better way to implement this? Thanks!

 

13 REPLIES 13

PoonkodiS
Kilo Sage

Hi @Mike LHCG1 ,

you can create the 2 nd action as create catalog task and add the if condition as catalog task state is closed complete.And,further send the email to the manager

 

Thanks,

Poonkodi

Ankur Bawiskar
Tera Patron
Tera Patron

@Mike LHCG1 

you can wait in your flow till your catalog task is closed

once closed use "Send Email" flow action to send email to whoever you want with subject, body

Flow Designer: Wait with RITM closure until all tasks are closed 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Mike LHCG1 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi Ankur,

 

I apologize for the delayed response. I'm not sure how to do what you suggest. The flow submits a catalog item that consists of 1 task. How do I then query the task or RITM to see if it is complete?