diff --git a/Server-Side Components/Business Rules/After-BR to generate approvals for catalog tasks/approval.js b/Server-Side Components/Business Rules/After-BR to generate approvals for catalog tasks/approval.js index b817a01d84..c68f524518 100644 --- a/Server-Side Components/Business Rules/After-BR to generate approvals for catalog tasks/approval.js +++ b/Server-Side Components/Business Rules/After-BR to generate approvals for catalog tasks/approval.js @@ -6,7 +6,7 @@ var sysApp = new GlideRecord('sysapproval_approver'); sysApp.state = 'requested'; //set the state to requested sysApp.sysapproval = current.sys_id; // set the 'Approval for' field with the current catalog task - sysApp.source_table = 'sc_task'; // set the source table field so that document ID table can be updated properly as it is dependent on source table field. + sysApp.source_table = current.sys_class_name; // set the source table field so that document ID table can be updated properly as it is dependent on source table field. sysApp.approver = 'sys_id of the person for whom you want to trigger this approval'; // set the approver sysApp.document_id = current.sys_id; //set the sys_id to populate correct value in the Approving field.