Populating field data from the sysapproval record for sysapproval_approver records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2024 08:39 AM
I am struggling with an email notification that triggers off the sysapproval_approver table. I created an email script that queries the table that the approval is for (found in the sys_approval field of the approval form). I want to take a couple of the the fields from this record (its from a custom form for this specific use) and populate them dynamically into the email notification. Currently, the email body comes up blank where the email script is when testing. Here is the email script I am using currently.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2024 08:43 AM - edited ‎01-25-2024 08:46 AM
In your mail script, I would use gs.info(current.sys_approval) to see what value you are getting vs what you expect in the system logs. Repeat that for any needed values until you are sure you know what you are getting. Work you way down the script logging values as needed and ensuring the log statement is firing, ensuring your script hasn't broken up to the log statement each time.