Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Report not populating records

Nawal Kishor S2
Tera Guru

Hi All,

I want show some Request in the reports but it returning NULL values, when I checked it in background script its working fine.

script include is client callable and all application scope.

 

Code- 

 

     getRequests: function() {
 
        return '21bc5108474ed110b286cc48946d4300';
    },
 
 Output: -
NawalKishorS2_1-1761572432943.png

 

 

Thank you!!


 

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Nawal Kishor S2 

your filter condition should be this

Sys ID [IS ONE OF] javascript: new RequestUtils().getRequests()

Also enable this Sandbox enabled Checkbox

AnkurBawiskar_0-1761572955721.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Nawal Kishor S2 

Thank you for marking my response as helpful.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Nawal Kishor S2 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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