jneale / Xplore

Xplore: Developer Toolkit for ServiceNow
MIT License
197 stars 147 forks source link

New Feature Request - Open in Xplore from List page #87

Closed kumaravel95 closed 3 months ago

kumaravel95 commented 5 months ago

It would be nice to be able to Open in Xplore option available in List page.

image

Xplore code edit have pre-filled code like below dynamically based on selected table, applied filters, group by & sorting.

var gr = new GlideRecord('incident');
gr.addEncodedQuery('universal_requestISEMPTY');

// ADDED LIMIT TO AVOID FETCHING LOT OF RECORDS. YOU CAN REMOVE AFTER VERIFYING NUMBER OF RECORDS
gr.setLimit(50)
gr.query();

var records = [];
while (gr.next()) {
    records.push(gr.getDisplayValue("sys_id"));
}
gs.log("Total count: " + gr.getRowCount())
gs.log(records);
kumaravel95 commented 3 months ago

I found this feature is already available