CSM portal filter issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 06:02 PM - edited 02-09-2024 06:04 PM
Hello All,
On CSM Portal we have cases and we can select conditions to filter data in the list displayed.However, when we are selecting Location , its displaying all locations in the drop down ( It needs to display only the logged in accounts location and not list all locations for Eg: if a user form Company "A" log in to CSM, and if Company "A" has 3 locations, then when the user selects location only 3 locations should be displayed.)
We checked ACL for cmn_location and saw it has both snc_internal and snc_external.
- We removed snc_external from existing acl
- Created another ACL for cmn_location for snc_external
added the following script for the acl
var username = gs.getUser().getEmail();
gs.info("ACLCMNUserID:"+username);
var accountName;
var contactGr = new GlideRecord("customer_contact");
contactGr.addQuery('email', username);
contactGr.query();
if(contactGr.next())
{
accountName = contactGr.company.name;
}
gs.info("ACLCMNCompanyName:"+accountName);
Not sure if the approach is right. As i think CSM OOB filters every thing based on the loged in account (am i right?) Please advise how to address this issue.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 04:17 AM
I have the same issue. Did you find solution?