Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

how to change default portal url in survey notification email script

sydneyespos
Tera Guru

Hi developers need help on how to change the url in survey notification email script. 

1 ACCEPTED SOLUTION

sydneyespos
Tera Guru

I used custom URL instead. thanks everyone!

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@sydneyespos 

is this an OOTB or custom email script?

share some screenshots

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Suryansh Verma
Mega Sage

@sydneyespos 

 

The standard survey URL generator is 

new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);

 

If your instance has multiple portals and only a particular survey notification should use a specific portal, do not change the global default portal and do not modify the OOTB AssessmentUtils Script Include.

Create a custom Notification Email Script that generates the required URL.

 

If it is helpful, please mark it as helpful and accept the correct solution by referring to this solution in the future, it will be helpful to them.

 

sydneyespos
Tera Guru

I used custom URL instead. thanks everyone!