Notification to Inactive Users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2024 11:18 PM
Hello Everyone
I have query like I have one field stored with Inactive user email. I want to send notification to him, but he is not receiving any Notification. Basically, I want to know is there any way to send notification to inactive users.
As per I have gone through, I got to know it is Platform Restrictions. Any thoughts on this please share.
Thanks in Advance!
Dinesh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2024 11:36 PM
Hi,
In notification, directly refer the email id of the user instead of referring the user record.
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 01:43 AM
Hi @Dinesh87 ,
You can use the GlideEmailOutbound API to send an email to an inactive user. However, you must first retrieve the inactive user's email ID via a script, and then you can send it using the GlideEmailOutbound API.
Note: You need to configure all elements, including the email subject, email body, and recipient.
You can bypass ServiceNow restrictions for sending emails to inactive users using the following approach:
var email = new GlideEmailOutbound();
email.setSubject('📢 Important Update from ServiceNow!');
email.addRecipient('test@example.com');
email.addAddress('cc', 'test@gmail.com');
email.setBody('<html>'+'<body>'+'<div>' +
'<h2 style="color: hashtag#0072C6">Hello Team,</h2>' +
'<p>This is a test email sent from ServiceNow using <b>GlideEmailOutbound</b>.</p>' +
'<p>You can customize your email content to fit your needs!</p>' +
'<p>Best Regards,<br>'+'ServiceNow Team</p>'+'</div>' + '<body>' + '</html>' );
email.save();
Output -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.
Thank you!
Moin Kazi
www.linkedin.com/in/moinuddinkazi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 02:00 AM
Hello @Moin Kazi
Thanks for sharing. But I will have the values as dynamic we cannot directly use the emails and more thing to add on, I have 3fields It may have values combined like they have active user email, inactive user email and the email where user is not present in the system. If you have any idea on this, please share.
Thanks!
Dinesh