CSM portal filter issue

CV1
Tera Contributor

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

 

1 REPLY 1

SiarheyV
Tera Contributor

I have the same issue. Did you find solution?