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

@Ankur Bawiskar 

Thanks for the response!,..

Above solution which you are proposed that is induvial record. I need one notification in a day for multiple records failed list link on body of email notification. and also how to mentioned group on "To" address in ;Send email' action in a flow?

 

Thanks,

BhanuPrakash.

@MUDIGOLAM BHANU 

that's what it does

run flow daily and you can check if any failed records are there or not and then only 1 email will be sent and it will contain link of those failed records

AnkurBawiskar_0-1746443068203.png

 

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

@Ankur Bawiskar 

ok, How to select group instead of email id mentioned on 'To' address in send email?.

 

@MUDIGOLAM BHANU 

simply give group email there

OR

You can use Lookup Record on sys_user_group and then output of that you can pass in the TO field

AnkurBawiskar_0-1746447639313.png

 

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

@Ankur Bawiskar 

On Lookup Record, multiple records having issue it will return only 1st record from list of failure records. i need all the list of records which are failed. below screenshot might be the- issue. could you please provide the solution for multiple record that can be shown up in body template?

MUDIGOLAMBHANU_0-1746454140779.png