How to acheive all the multi failure exportsets records to get single notification in a day?

MUDIGOLAM BHANU
Tera Contributor

Need to show them for all the multi failure exportsets records to get trigger a single notification on daily basis along with link(reDirect to 'list of failure records') in a body of the template notification.

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@MUDIGOLAM BHANU 

you can use this table which holds export set history -> sys_export_set_run

You can use flow which runs daily, check records created on today in that table with state as Error

Then use flow variable to store the link and use that in "Send Email" flow action

Refer my blog on how to add link to records and enhance for your case

ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action 

Something like this in flow

export set fail daily email flow.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

@MUDIGOLAM BHANU 

No need of Lookup records.

Just give the below URL as hyperlink in your email body. (Update the instance name with yours)

 

https://instancename.service-now.com/sys_export_set_run_list.do?sysparm_query=sys_created_onONToday%...

 

Regards,

Sumanth

View solution in original post

14 REPLIES 14

SumanthDosapati
Mega Sage
Mega Sage
  1. Go to the table list of your failed records and apply filter as created on today.
  2. Copy the URL.
  3. Create a new Flow in Flow Designer
  4. Set the trigger as schedule and make it trigger every end of the day 
  5. Send an email notification in Flow Actions and include the link you copied in step 2.

 

Regards,

Sumanth

@SumanthDosapati 

Thanks for the response!,..

I am looking for "list of failure records" dynamic link that should be mentioned in body template(what it will contain) session on notification along with reason of failures as well.

 

Thanks,

BhanuPrakash.

which table are you referring to when you say 'failure records'?

 

Ankur Bawiskar
Tera Patron
Tera Patron

@MUDIGOLAM BHANU 

you can use this table which holds export set history -> sys_export_set_run

You can use flow which runs daily, check records created on today in that table with state as Error

Then use flow variable to store the link and use that in "Send Email" flow action

Refer my blog on how to add link to records and enhance for your case

ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action 

Something like this in flow

export set fail daily email flow.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

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