Skip to content

Non-Employee Account Review Email Template

The Non-Employee Account Review email is sent to a user when a request for a non-employee account has been submitted that requires their attention. The email's recipient can approve or deny the request.

Name: Non-Employee Account Review

Technical Name: non_employee_approval_required

Subject: Review the non-employee account requested for ${data.firstName} ${data.lastName}

Body:

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

#set($_sourceName = $data.nonEmployeeSource.name)\
#set($_requestedForDisplayName = "${data.firstName} ${data.lastName}")\
#set($_pendingApprovalItem = $__util.getObjectByJsonPath($__contentJson, "$.data.approvalItems[?(@.approvalStatus == 'PENDING')]").get(0))\
#set($_approvedApprovalItems = $__util.getObjectByJsonPath($__contentJson, "$.data.approvalItems[?(@.approvalStatus == 'APPROVED')]"))\
#set($_notReadyApprovalItems = $__util.getObjectByJsonPath($__contentJson, "$.data.approvalItems[?(@.approvalStatus == 'NOT_READY')]"))\
#set($_requester = $__util.getUser($data.requester.id))

<p>$_requester.name has requested a new non-employee account for $_requestedForDisplayName on the source $_sourceName.</p>\
#set($_approvalCenterUrl = "${__global.productUrl}/ui/d/approvals/requested-items")\
<p>Please visit the <a href="$_approvalCenterUrl">Approvals center</a> to review this request.</p>

#if($_approvedApprovalItems.size()>0)\
<p>#foreach($_approvedItem in $_approvedApprovalItems)#if($foreach.count!=1) and #end$__util.getUser($_approvedItem.approver.id).name#end have approved this account.</p>\
#end\
#if($_notReadyApprovalItems.size()>0)\
<p>#foreach($_notReadyApprovalItem in $_notReadyApprovalItems)#if($foreach.count!=1) and #end$__util.getUser($_notReadyApprovalItem.approver.id).name#end will review this account request if you approve it.</p>

#end

#if($_pendingApprovalItem.approvalOrder == $data.approvalItems.size() - 1)

<p>If you approve this non-employee account request, an account for $_requestedForDisplayName with the account ID $data.accountName will be created in $__global.productName.</p>\
#end

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