Email Notifications

Shaik22
Tera Expert

Hello,

 

Please provide answers of below questions.

 

1.How an email will be recognized by service now system?

2.How the data will be read from email with examples?

3.How to create link to approve/reject an approval in email?

4.How to print test or something from mail script?

5.what is the use of email template and how to trigger a template from script.

1 ACCEPTED SOLUTION

Kalyani Jangam1
Mega Sage
Mega Sage

Hi @Shaik22 

 

Please check below answers

1.How an email will be recognized by service now system?

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/task/t_Crea...

https://tech.forums.softwareag.com/t/servicenow-email-notification/237436

 

2.How the data will be read from email with examples?

It is consider Inbound email

We can use the "email" object to obtain data from inbound emails:

email.body_text: Contains the body of the email as a plain text string.
email.body_html: Contains the body of the email as an HTML string.

Also for other values you can refer below :

https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_lea...

 

3.How to create link to approve/reject an approval in email?

https://www.servicenow.com/community/itsm-blog/approve-reject-button-in-approval-notification/ba-p/2....

 

4.How to print test or something from mail script?

We can use template.print(“test”);

 

5.what is the use of email template and how to trigger a template from script.

Email templates enable administrators to create reusable content for the subject line and message body of email notifications.

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_...

call email script like below

${mail_script:script name}

 

Please check and Mark Helpful and Correct if it really helps you.

View solution in original post

1 REPLY 1

Kalyani Jangam1
Mega Sage
Mega Sage

Hi @Shaik22 

 

Please check below answers

1.How an email will be recognized by service now system?

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/task/t_Crea...

https://tech.forums.softwareag.com/t/servicenow-email-notification/237436

 

2.How the data will be read from email with examples?

It is consider Inbound email

We can use the "email" object to obtain data from inbound emails:

email.body_text: Contains the body of the email as a plain text string.
email.body_html: Contains the body of the email as an HTML string.

Also for other values you can refer below :

https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_lea...

 

3.How to create link to approve/reject an approval in email?

https://www.servicenow.com/community/itsm-blog/approve-reject-button-in-approval-notification/ba-p/2....

 

4.How to print test or something from mail script?

We can use template.print(“test”);

 

5.what is the use of email template and how to trigger a template from script.

Email templates enable administrators to create reusable content for the subject line and message body of email notifications.

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_...

call email script like below

${mail_script:script name}

 

Please check and Mark Helpful and Correct if it really helps you.