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.

Capture the dynamic updated set of result from query builder

Shubham Deep
Tera Contributor

Hi team,

 

I have got a set of records from cmdb query builder in which the data is changing dynamically. I have created a scripted rest api to provide the latest data to third party through integration . My code is:

 

var getDate = new GlideRecord('u_cmdb_qb_result_abc_xyz');
    getDate.addEncodedQuery("query=mno_pqr");
    getDate.query();
 
 
 
The problem is that i need to provide the dynamic data to the third party. I am trying to implement

query.sys_id=javascript: new QueryBuilderReports().getQueryLatestExecutionId('mno_cde').

but not sure where to write this.

 

 

Please guide.

 

 

 

Thanks in advance.

Shubham

0 REPLIES 0