Unable to see records on User field(reference to User table) on Consumer table

Sushma Uday C
Tera Contributor

Unable to see records on User field(reference to User table) on Consumer table as we have reference qualifier on user field as javascript:new Consumer().getConsumerUserReferenceQualifier() which takes to Consumer Script include which refers to another Script include ConsumerImpl which has below function 

getConsumerUserReferenceQualifier: function() {
        if(!gs.nil(this.userExtensions)) {
            return "sys_class_nameIN" + this.userExtensions.join();
        }

        return "";
    }, 
 
Can someone explain what happening in the above script? How it is restricting records to be shown on User field(reference to User table) on Consumer table?
 
4 REPLIES 4

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Sushma Uday C 

 

Looks like the script include is customized, Please check how the value of userExtensions field is stored.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila ,

 

I dont think script include is customized, ConsumerImpl is a Read Only script. 

Community Alums
Not applicable

Hi @Sushma Uday C ,

I have one question 

 

getConsumerUserReferenceQualifier: function() {
        if(!gs.nil(this.userExtensions)) {
            return "sys_class_nameIN" + this.userExtensions.join();
        }

        return "";
    }, 

 

From where you got the value of this.userExtensions.join(); in your script 

 

Thanks and Regards 

Sarthak

@Sushma Uday C 

seems userExtensions is a constant variable declared in initizlie function

did you check that?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader