generate a catalog task for whoever on the group approves the request item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-22-2025 12:19 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-22-2025 07:11 PM - edited ā07-22-2025 07:12 PM
@TalitaA Have you considered a Business Rule on the sysapproval_approver table?
When: After
Tick Update
Filter condition/s: state changes to approved....or you can do approval = requested (depending on where you want it to occur)
Script:
(function executeRule(current, previous) {
// Only continue if the approval is for a Requested Item
if (current.sysapproval.getTableName() !== 'sc_req_item') {
return;
}
// Get the approved RITM
var ritm = current.sysapproval.getRefRecord();
// Sanity check
if (!ritm || !current.approver) {
return;
}
// Query Catalog Tasks linked to the RITM
var taskGR = new GlideRecord('sc_task');
taskGR.addQuery('request_item', ritm.sys_id);
// Optional: Only assign if task doesn't already have someone
// taskGR.addNullQuery('assigned_to');
taskGR.query();
while (taskGR.next()) {
taskGR.assigned_to = current.approver;
taskGR.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-22-2025 08:22 PM
you can use Lookup Record and not Lookup Records
The output from Lookup Record will be sysapproval_approver record
From there you can select the Approver field and set in Assigned To field on Catalog Task
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader