var table = 'sc_req_item' var condition = "opened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^number<=RITM127170"; var grScReqItem = new GlideRecord(table); grScReqItem.addEncodedQuery(condition); grScReqItem.orderByDesc('number'); grScReqItem.setLimit(250); grScReqItem.query(); while (grScReqItem.next()) { gs.info('number: ' + grScReqItem.getValue('number')); // gs.info(grScReqItem.deleteMultiple()); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter