Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 09:40 AM
This is the code that I ended up using for the requirement. I hope this can help anyone who had a similar issue: var catalogItemSysID = gs.getProperty("x_g_nel2_pivi.request.replacement.pivi.request");
var ritmGR = new GlideRecord('sc_req_item');
ritmGR.addQuery('cat_item', catalogItemSysID);
ritmGR.addQuery('request.requested_for', current.variables.who_is_this_request_for);
ritmGR.query();
if (ritmGR.next()) {
current.variables.replacement_card_count = ritmGR.getRowCount();
ritmGR.update();
}