Domain Separate sys_email_layout

Ihor Kochetkov
Tera Contributor

Hi folks,

I want to override this NOW logo in all notifications and company address (at the bottom) in email layout Employee notification layout

We have domain separation and I created a clone in sys_email_layout and sysevent_email_template with necessary logo. Then I can override notification itself (change template) and it will create a copy in client domain, which is good, but not works for me because I will have to do it for each notification (10 in incidents, 10 in RITMs etc and in future more and more).

So I'm wondering is there a way to configure Domain Separation to override template. So basically I don't want to do any changes in notification itself. But instead of it I can domain separate a sys_email_layout and it will pick the new template.

I already separated sysevent_email_template and then modified Employee notification template , and it created an override record successfully, I can see it if will Expand Domain Scope, however notification is not pulling the new Template.

Is there a way to achieve my goal?

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Luke Van Epen
Tera Guru

The way SN recommends to do this is to create custom fields on the Company table, and for each domain separated customer, add these branding configurations as part of the company's record. 

E.g. company.u_notification_logo, company.u_notification_address etc. 

Then in your notifications, use Mail Scripts to dynamically set these branding configs in the notification. 

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/script/server-scripting/concept...

 

If this doesn't work for you, then yes you'll have to do it manually for each notification in each domain. Or you could write a Fix-script to generate them for you if you have hundreds to get through

View solution in original post

1 REPLY 1

Luke Van Epen
Tera Guru

The way SN recommends to do this is to create custom fields on the Company table, and for each domain separated customer, add these branding configurations as part of the company's record. 

E.g. company.u_notification_logo, company.u_notification_address etc. 

Then in your notifications, use Mail Scripts to dynamically set these branding configs in the notification. 

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/script/server-scripting/concept...

 

If this doesn't work for you, then yes you'll have to do it manually for each notification in each domain. Or you could write a Fix-script to generate them for you if you have hundreds to get through