Getting the error onload of EC ' ApprovalDelegationUtil undefined, maybe missing global qualifier'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 12:10 AM
Hello All,
Please help me to sort this issue, when I'm loading the EC Homepage with admin role it is working as expected, but when non-admin user is loading the page, they are facing as issue getting as error 'ApprovalDelegationUtil undefined, maybe missing global qualifier' and page behave also getting changed.
I've checked the ApprovalDelegationUtil script include, and other configuration (To-Do configuration), checked the cross scope privileges as well. all are in the place, nothing is manually updated.
Please see attached screenshot where I'm getting an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 03:19 AM
then if no script change then it's strange
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 12:51 AM
The script include "ApprovalDelegationUtil" is it defined in global Application?
Check from where ever it is getting called if its initialized like "new global.ApprovalDelegationUtil()"
Please mark the answer helpful clicking on 👍 and correct if it helps the issue. Happy scripting 🙂
-Shantanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 01:32 AM
Hi Shantanu,
Script include is in 'global' app. also checked from where new global.ApprovalDelegationUtil() called, but all are in place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 01:40 AM
you didn't share what change did you make to the component?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader