outbound email notification

SAM321
Tera Contributor

Hi all so i have a custom table ( vendor details)... when the table status field is changed to approved , Then email has to send to particular vendor that the " Vendor is approved"... How to achieve this

4 REPLIES 4

New Developer_S
Giga Sage

@Abhijith807

Please go to  System Notification > Email > Notifications.

Select an existing notification record for the desired event (In your case, select table name and  send when should be filled )

Create a copy of this notification for each outbound email address

Open one of the notification copies, and click the Advanced view related link.

In the What it will contain section, add an email address to the From field that is different from the default instance address

Add a different email address than theFrom address to the Reply to field if you want replies to this notification to go to a different address.The system checks the From field for an address. If this field is empty, then the system uses the default address for the instance. If the Reply to field is empty, then all replies are sent to the address from which the notification was sent. If the Reply to field contains an email address, then the system sends all replies to the notification to this address.Create mutually-exclusive conditions for notifications of the same type, so only the desired notification is sent when the event is fired.

For example, if the Company is a certain value, then the notification comes from a unique email address entered in the From field.

Click Update.

 

Give a Thumbsup if this answer  is helpful and correct.

Anish Reghu
Kilo Sage
Kilo Sage

Hi @SAM321,

 

Hope this helps.


Navigate to Notifications.

AnishReghu_0-1677308087315.png

 

Create a new notification.

AnishReghu_1-1677308126488.png

 

Specify a custom name in the Name field to your identify your notification.

AnishReghu_2-1677308329316.png

 

Select the custom table you created from the drop down that you see in the Table field.

 

In the form section, make sure you are on the When to send tab,

AnishReghu_3-1677308433649.png

 

Then select the Add filter condition to specify the condition that will trigger the notification. Remember, whatever you specify here as a condition is when satisfied triggers the email notification.

 

Then select the following condition in the filter selection:

AnishReghu_4-1677308687493.png

NOTE - Replace "Requested" with the state from which you move it to "Approved", if your choice value differs on the custom table.

 

The vendor name must have been stored on a field in your custom table, isn't it? Select that field name in the second tab - Who will receive

 

AnishReghu_5-1677308912518.png

Click that lock icon and you should be able to see the custom table field names, choose the field that contains the vendor record in it.

 

Now, let's move to the 3rd tab: What it will contain

 

AnishReghu_6-1677309020407.png

You can see two fields and one field picker on the right hand side.

Enter the Subject that you want the recipient to see as the email Subject.

In the HTML, enter the body of the email that you want to communicate to the recipient, i.e. the Vendor.

 

Tip: Do not use the above phrase - "Vendor is approved."

Make your subject more elaborate that conveys a clear meaning.

 

Below, I am showcasing how selection of a variable, displays on your HTML,

 

AnishReghu_7-1677309329684.png

 

Let's say, I want to address the user in the Closed by field on the table, when I choose Closed by, it will show as 

AnishReghu_8-1677309401499.png

Then remove the label Closed by and just keep $(closed_by} - this dynamically pulls the real-time value of the user in the selected variable field.

 

Same goes for pulling any value from the Vendor details table.

 

Finally right click on the header and choose Save from the context menu or choose Submit to go to update the changes you have made to the notification and redirect you to the previous page.

 

Your notification is now ready to be triggered when the condition that you have specified is met. To preview the notification triggered, you may visit System Logs > Emails

 

AnishReghu_10-1677309868465.png

and search by your notification Name (remember you specified a name at the beginning) to view the actual notification triggered and if it is sent to the correct recipient.

 

Kindly mark the response as Correct or Helpful.

Cheers,

Anish

 

SAM321
Tera Contributor

Hi @New Developer_S am new to servicenow, I not understand second and third line....also there is any script for this...because if there is 50 vendors records is there and only 25 vendors to be approved and when approved then everyone should get mail..is it possible

SAM321
Tera Contributor

@Anish Reghu Hi actuallay in my case . The vendor details table itself have two fields status ( containg choices approved and rejected).. and email field that contain email address of same vendor.

Once the team check the details and clicked approved , then the email should be send to that email address. That approval i created workflow ,when form is submitted the request send to team for approval. Once they approved email should send to vendor, It should happen automatically. that is when i create one notification.. it should work for all approval...