How to add users from watch list to the CC of email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:18 AM
Hi all,
I have a requirement where i need to add all the watchlist users to the CC of email notification.
I have written the mail script but not getting the outcome.
Could someone help me on this.
Tried putting logs.
Log inside while loop is not coming.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 04:02 AM
Tried the same way earlier as well but still not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 04:05 AM
You are getting the log lines?
Do you only have users, or also emailaddresses in the watch list?
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 04:09 AM
I am not getting the log inside while loop apart from that all other logs are printing.
I have only users in the watchlist and not the email ids
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 04:19 AM
Just tried it in my instance. Script works as it should.
Please try the query you are running manually, to see if the users can indeed be found.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 04:07 AM
what debugging have you done so far?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
