How to get the reference record for Group approvals?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 02:48 AM
I have a Notification 'Approval request for exception' which is OOB on Approvals [sysapproval_approver] table. It contains the Notification email script 'sn_vul_exception_request_to_group'. Now, that I have changed the Notification table to Group Approval [sysapproval_group], the body of Notification is now blank as it is not getting any reference record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 03:03 AM - edited ‎03-13-2024 03:05 AM
Hi @ArpitaVK ,
Here in this line of code var appr_Record = current.document_id.getRefRecord();
document_id is the field on sysapproval_approver and we don't have this field on sysapproval_group table so you would have to replace this line of code with this
var appr_Record = current.parent.getRefRecord();
means from approval record we are reaching out to the record for which we have approval, means apporval for change request or approval for requested item etc.
Please hit helpful and accept this as a solution if it solved your problem.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 03:06 AM
Hi @M Ismail
Parent is showing empty for group approval records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 03:09 AM
@ArpitaVK Can you please give me a full code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 03:23 AM - edited ‎03-13-2024 03:25 AM