
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 06:15 AM
For System Notifications, on the sysapproval_approver table.
The field, "Created By" (sys_created_by), is a string field, not a reference.
The Created By displays the "user_id" of the user, instead of their "name".
How can I get the name?
In the body of the email I have:
Created By: ${sys_created_by.name} = of course since this isn't a reference field, it returns nothing.
Created By: ${sys_created_by} = this returns the user_id, like 489593
Can I use the good 'ole getReference() function in an email notification?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 07:32 AM
You can use use mail script and put this script in there
template.print(gs.getUser(). getUserByID(current.sys_created_by).getDisplayName());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 06:17 AM
An easier way would be to use Opened_By, which is an actual reference, and unless there's been significant alteration from OOB, shouldn't be different than the Created By.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 06:24 AM
That'd be awesome if Opened By was a field on the sysapproval_approver table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 06:28 AM
Are the approvals being manually created?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 06:34 AM
No, by a workflow (Approval - User).
The record creating table does not extend the task table, so the "Approval for" on the sysapproval_approver is blank. I'm triggering the notification as such:
The entire workflow and approval system works great, I'm just trying to get the name of Created By, not their user id.
I know, if this extended the task table then I could use ${sysapproval.opened_by.name}, but alas, I'm not.