Skip to content

Non-Employee Account Request Decision Email Template

The Non-Employee Account Request Decision email is sent to a user to inform them that a decision has been made about the non-employee account they requested. 

Name: Non-Employee Account Request Decision

Technical Name: non_employee_request_action_completed

Subject: Your non-employee account request for ${data.firstName} ${data.lastName} was $data.approvalStatus

Body:

Dear $__recipient.name,<br/><br/>

#set($_sourceName = $data.nonEmployeeSource.name)\
#set($_userDisplayName = "${data.firstName} ${data.lastName}")\
#set($_approvalStatus = $data.approvalStatus)\
#set($_createdDate = $__dateTool.toDate("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", $data.created))

<p>On $__dateTool.format('yyyy-MM-dd', $_createdDate), you requested a non-employee account for $_userDisplayName on the source $_sourceName.</p>

#if($_approvalStatus == "APPROVED")\
<p>This request has been <span style="color:green">approved</span>. A new $__global.productName account for this user is being processed. The account ID for this account will be $data.accountName.</p>\
#elseif ($_approvalStatus == "REJECTED")\
#set($_rejectorIds = $__util.getObjectByJsonPath($__contentJson, "$.data.approvalItems[?(@.approvalStatus == 'REJECTED')].approver.id"))

#foreach($_rejectorId in $_rejectorIds)

#set($_rejector = $__util.getUser($_rejectorId))\
#set($_completionDate = $__dateTool.toDate("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", $data.completionDate))\
<p>$_rejector.name <span style="color:red">denied</span> your request on $__dateTool.format('yyyy-MM-dd', $_completionDate).</p>\
<p>Please contact $_rejector.name if you have any questions.</p>\
#end\
#end

#set($_commentApprovalItems = $__util.getObjectByJsonPath($__contentJson, "$.data.approvalItems[?(@.comment!=null)]"))

#if($_commentApprovalItems.size()>0)\
#foreach($_approvalItem in $_commentApprovalItems)\
$__util.getUser(${_approvalItem.approver.id}).name provided the following additional information: </br>\
<b>$_approvalItem.comment</b> </br>\
#end\
#end

<br/>Thanks,<br/> The $__global.productName Team<br/>