Include Reference Qualifier script in Script include and call it in Reference Qualifier override

Piyush Dwivedi
Tera Contributor

I have just copied the filter conditions of a Service table in reference qualifier, now i need to include it in script include and then call it in Reference qualifier override, please suggest.

What will be possible script include?

1 ACCEPTED SOLUTION

Hi @Piyush Dwivedi ,

Actually this is not helping whatever you are sharing

we are trying to help you but the info you are sharing is not really helping.

 

you could have shared all these details like what you have done so far the scripts that you have used and some screenshots of configurations you have made and issue you are facing

 

 

this should not be taking this long and these many attempts in providing you the solution especially for a question like this

 

 

I would suggest you to to go through below blogs for on how to post question in community

Tips on asking Question On Community

10+ Tips for writing a quality community question

 

please don't post duplicate question when there is already a discussion going on the same issue and I have seen the scenario is same in other threads as well

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

8 REPLIES 8

Hi @Piyush Dwivedi ,

 

just return the encoded query from the method, copy you encoded query and return the encoded query

 

example refQual method return "place your encoded query"

 

var refQualTest = Class.create();
refQualTest.prototype = {
    initialize: function() {},

    refQual: function() {
        return 'PUT YOUR ENCODED QUERY';
    },

    type: 'refQualTest'
};

 

if this doesn't help in resolving/answer issue/query  

 

please share your script include and encoded query will update you one what should be done

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Thanks for quick reponse
I am getting below error.
Could not save record because of a compile error: SyntaxError: Expected ';', got '=' at line 3, column 1
 
and once i update it in script include, How to call it via Reference Qualifier override, please guide? 
 

Hi @Piyush Dwivedi ,

Actually this is not helping whatever you are sharing

we are trying to help you but the info you are sharing is not really helping.

 

you could have shared all these details like what you have done so far the scripts that you have used and some screenshots of configurations you have made and issue you are facing

 

 

this should not be taking this long and these many attempts in providing you the solution especially for a question like this

 

 

I would suggest you to to go through below blogs for on how to post question in community

Tips on asking Question On Community

10+ Tips for writing a quality community question

 

please don't post duplicate question when there is already a discussion going on the same issue and I have seen the scenario is same in other threads as well

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@Piyush Dwivedi 

Sorry but you didn't share what you tried so far? share screenshots scripts etc

If my response helped please mark it correct and close the thread so that it benefits future readers.

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