- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 06:32 AM
Hi All
I know there are multiple posts on this subject (which I have read!) but I cannot find a solution to my issue.
I have a catalog item in the Customer Service Request Integration scope. In this item I have the following onLoad catalog client script -
and this is the Script Include -
When I load the catalog item on the CSM Portal, I am getting the error message "There is a JavaScript error in your browser console" and the variables company_type and licence_allocation are not being populated. When I checked on the console, it just states "Unhandled exception in GlideAjax.".
As part of my investigations, I added an alert to the onLoad client script to ensure the Account field value is being returned, and it is.
Can anyone please assist in resolving this issue?
Many thanks
Jenny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 09:25 AM
Hi Pranesh
Well I finally figured out what the issue was! As we are using CSM, our Portal users (contacts) have snc_external roles. After turning on security debugging, I found there was a 'client-callable script include' ACL which was set to snc_internal only. So I updated the acl to include the external role, and all is now working as it should. Phew!!
Thanks very much for your suggestions, it is really appreciated.
Regards
Jenny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 06:39 AM
can you try.
displayValues.push(gr.getDisplayValue(fields[i]));
Also try to open the catalog on native view and check console for errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 07:29 AM
can you alert the answer in client script, according to the error answer is coming null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 08:28 AM
Hi Pranesh
I added an alert and yes this answer is coming back as null. But I don't understand why? Is it because my item, script include and client script are in the Customer Service Request Integration scope, but the customer_account table is in Global?
Thanks
Jenny