what can be the interview questions on both Inbound and outbound email Integrations?

mallikharjunasw
Tera Contributor

what can be the interview questions on both Inbound and outbound email Integrations?

1 ACCEPTED SOLUTION

HI,

1) how to call email script into notification?

Answer: ${mail_script:nameofmailscript}

 

2)Why template.print is use in mail script?

Answer: to print the results to notification.

 

3) When you create a notification, you use email template which has subject and body in it. Also the notification has subject and body? WHich will get priority?

Answer: notification subject and body will get priority. If notification doesnot have subject or body it will be used from template.

 

4) Why do we use email layout?

Answer:Email layout is reusable template which can be used in many notifications.

 

5) Can we access event param in mail scripts?

Answer: Yes we can use them as event.param1 or event.param2.

 

6) Why we use omit watermark checkbox?

Answer: So outbound emails will not have watermark.

 

7) Significance of each parameter in mail script

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event)

Answer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/script/server-scripting/referenc...

 

😎 HOw to add people in cc and bcc using script in notification?

Answer:addAddress(String type, String address, String displayname): type can be cc or bcc.

 

9) gs.eventQueue has how many parameter's?

AnsweR: 5

 

10)How many ways notification can be triggered?

Answer: event, record insert / update, trigger from flow designer, workflow.

11) What is the user of send to event creator?

Answer: Person who triggers the event will receive the notification if this box is true.

Thanks,
Ashutosh

View solution in original post

5 REPLIES 5

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Inbound Email Integrations:

1) what kind of inbound emails are their?

Answer: New, Forward, Reply.

 

2) What is the use of Stop Processing checkbox on inbound actions?

Answer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/concept/...

 

3) What is watermark?

Answer:https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/concept/...

 

4) Can we restrict inbound action based on roles?

Asnwer: Yes.

 

5) What scripting components are available in inbound action script?

Answer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/referenc...

 

6) How the inbound action will check if the record has to be created or updated?

Answer: Watermark, Number in subject or body.https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/concept/...

 

7) If the email is from a user other than user table will the user be created in servicenow or not?

Answer: Depends on email property as below.

find_real_file.png



I dont know what you want for outbound emails. We just create notifications and send it to user as required and decided by them.

Keep posting or let me know if you have any doubts.

 

I will prefer you should go through docs and developer.service-now.com training and documentation to learn more.


Thanks,
Ashutosh

we can create scripts and templates in notifications and we have certain configurations as well, we have notification for meeting like meeting invitation. So can you please provide some questions and answers for those?

HI,

1) how to call email script into notification?

Answer: ${mail_script:nameofmailscript}

 

2)Why template.print is use in mail script?

Answer: to print the results to notification.

 

3) When you create a notification, you use email template which has subject and body in it. Also the notification has subject and body? WHich will get priority?

Answer: notification subject and body will get priority. If notification doesnot have subject or body it will be used from template.

 

4) Why do we use email layout?

Answer:Email layout is reusable template which can be used in many notifications.

 

5) Can we access event param in mail scripts?

Answer: Yes we can use them as event.param1 or event.param2.

 

6) Why we use omit watermark checkbox?

Answer: So outbound emails will not have watermark.

 

7) Significance of each parameter in mail script

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event)

Answer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/script/server-scripting/referenc...

 

😎 HOw to add people in cc and bcc using script in notification?

Answer:addAddress(String type, String address, String displayname): type can be cc or bcc.

 

9) gs.eventQueue has how many parameter's?

AnsweR: 5

 

10)How many ways notification can be triggered?

Answer: event, record insert / update, trigger from flow designer, workflow.

11) What is the user of send to event creator?

Answer: Person who triggers the event will receive the notification if this box is true.

Thanks,
Ashutosh

ks reddy
Tera Contributor

Hi 

Can we write Script in notificaitons?