Access to inactive contacts in cases

lamarchel
Giga Expert

Hi!

I'm trying to make inactive contacts appear in the refered list in cases for users with a specific role ("Accès aux inactifs").

I work on a copy of CSmanagementUtils where I made all "addActiveQuery" conditional like this :

 

        if (!gs.hasRole("Accès aux inactifs")) {
            contactGr.addActiveQuery();
        }
 
But it works only with admin role. User with the "Accès aux inactifs" role still can't see inactive contacts.
What am I doing wrong?
 
Thanks!

 

6 REPLIES 6

I understand. The field is using an Advanced Reference Qualifier that calls an OOTB (Out-of-the-Box) Script Include. This standard script enforces the active=true filter.

 

To resolve this, you need to create a new Script Include (copying the logic from the original one but removing the restriction on inactive records) and update the field's Dictionary to point to this new script. Alternatively, You also should use a Dictionary Override to apply this change specifically to the Case table, ensuring the rest of the system isn't affected.

I tried to remove all "active=true" in my script include, but it doesn't work. 😞

 

I can't create any dictionary override since the new button don't show. I don't know why since I have the admin role.