Running Suite CRM 7.13. Email Templates. What is the variable ($ placeholder) for Modified User Name? Like a case can be assigned to ‘User A’ but ‘User B’ modifies it. Currently the $acase_date_modified only prints the Date/Time it does not print like ‘User A’ made the change or ‘User B’. Thanks.
SuiteCRM doesn’t (by default) record the user that modifies a record.
You might be able to get that from the tracker table if you set some fields to be tracked.
Hey
The CRM does store the modified by user
to use them in a template use
$acase_modified_by_name
I am a bit surprised that the dropdowns for insert variable don’t show the modified and created by use (I could have sworn they show it but I was wrong)
Here are the vardefs for them
'modified_user_id' =>
array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'group' => 'modified_by_name',
'dbType' => 'id',
'reportable' => true,
'comment' => 'User who last modified record',
'massupdate' => false,
'inline_edit' => false,
),
'modified_by_name' =>
array (
'name' => 'modified_by_name',
'vname' => 'LBL_MODIFIED_NAME',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'rname' => 'user_name',
'table' => 'users',
'id_name' => 'modified_user_id',
'module' => 'Users',
'link' => 'modified_user_link',
'duplicate_merge' => 'disabled',
'massupdate' => false,
'inline_edit' => false,
),
'created_by' =>
array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_CREATED',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'dbType' => 'id',
'group' => 'created_by_name',
'comment' => 'User who created record',
'massupdate' => false,
'inline_edit' => false,
),
'created_by_name' =>
array (
'name' => 'created_by_name',
'vname' => 'LBL_CREATED',
'type' => 'relate',
'reportable' => false,
'link' => 'created_by_link',
'rname' => 'user_name',
'source' => 'non-db',
'table' => 'users',
'id_name' => 'created_by',
'module' => 'Users',
'duplicate_merge' => 'disabled',
'importable' => 'false',
'massupdate' => false,
'inline_edit' => false,
),
That worked! Thanks.