Can someone help me how to redirect the esc portal view to the sp portal view in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 11:31 PM
Hi Can some one help me how to redirect the esc portal view to the sp portal view in ServiceNow request notification.
1. Email notification links redirects to sp portal view and its redirecting to esc portal view. Is there is a way to check from onwards this modification happened in ServiceNow.
2. For the new requests creation notification it directs to sp portal but for the old request the link directs to esc portal. Please find the code for reference. Is it possible to put the old request link to sp portal view.
Earlier code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 11:40 PM
which OOTB email notification is this? share the name and screenshots
You want always it should be redirected to esc ?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 11:58 PM
Hi Ankur,
I want it to be redirected to the sp portal .
It is an OOB notification. I want to modify the email notification script. Please see the screenshot for reference. I have shared the entire code of email notification script below
of the (about_the_request_ijm). Please help me on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 02:05 AM
I could see that's not OOTB notification on sc_request.
The OOTB has name -> Request opened
Did you rename the OOTB one and created your own copy of that email script?
If yes and in entire instance you want sp then it's fine.
But remember since you updated an OOTB notification you will not get any updates to this when instance upgrades.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 12:12 AM
Hello @NagaNandini N
The method getPortalSuffix() from the FoundationNotificationUtil Script Include (part of Employee Experience Foundation) returns the ESC portal prefix by default.
Hardcoding var portalSuffix = 'sp'; forces all links to open in Service Portal—even for old requests—which is a good workaround if you prefer SP.
It's best not to edit scoped Script Includes directly, as they may be overwritten during upgrades.
This maybe useful: Approval Links in a Notification - direct to Service Portal not Employee Center
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar