Trigger notification with multiple records to user

Arun61
Tera Contributor

We have a requirement like when knowledge articles are outdated then we have to trigger a notification every week to author and cmdb_ci owner. 

if ci owner have 3 outdated articles then need to trigger only one mail which includes all the articles number

example subject: - Below articles are outdated.

KB000001

KB000002

KB000003

How can i achieve this

2 REPLIES 2

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
You can use the GlideAggregate API to perform this operation.

GlideAggregate | ServiceNow Developers

 


Thanks and Regards,

Saurabh Gupta

Manisha Reddy K
Mega Guru

Hi @Arun61 ,

     Create a workflow with condition as workflow is outdated.

ManishaReddyK_0-1694620866906.png

1) In the timer activity, add 7 days

2) In the script activity, please add the below code

ManishaReddyK_1-1694620939776.png

3) From the event pass the KB Numbers in an array and print the KB numbers through mail script in the email notification body.

 

Please mark this as helpful if it is