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

@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

@MUDIGOLAM BHANU 

the Lookup Record is given so that you can fetch the group and nothing to do with the failure records.

I used "Lookup Records" on that table to know the count of failed records.

if it's more than 0 then only send email

I already informed to form link dynamically and then include that in Send Email flow action

Seems you missed that part above

AnkurBawiskar_0-1746460311269.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

Hi @Ankur Bawiskar / @SumanthDosapati 

If i given direct link to link flow variable and then i mentioned that link on email body using data pill. Email is getting trigger every day EOD(on that time no one is working) so that trigger mail checked on next day when the user click that link is redirect to today only not for yesterday failed records. How to overcome from this issue? 

 

Thanks,

Bhanu.

@MUDIGOLAM BHANU 

you can enhance the logic in your flow variable while setting it in script and subtract 1 day from the current date/time and then include in flow variable

then if agents visit the next day the link still has date for previous day.

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

@MUDIGOLAM BHANU 

Option One:

1. Make the flow trigger at 11.59 PM

2. Change the dynamic link with filter as created on Yesterday instead of today.

Option Two:

1. Build the query to include the exact date instead of dynamic day like today/yesterday.

2. Construct the URL to open the list of records created on that date.

 

Regards,

Sumanth