to be more clear with my requirement.
we are using slight modified default workflow for the joiner process.
where the actual requirement is about the email notification which is send to the manager for the approval.
in the email it hold additional details which are not required to be send in the email.
Subject: Account operations you requested for testtx14 were processed
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_10_679301877.1753862768322"
X-Mailer: smptsend
------=_Part_10_679301877.1753862768322
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
font-family: 'Arial';
}
th, td {
padding: 5px;
text-align: left;
}
th{
color: blue;
font-size: 14px;
}
td{
font-size: 12px;
}
</style>
</head>
<Body>
Dear Requester,
<br> <br>
The following actions you requested for identity 'testtx14' has been APPROVED. <br> <br>
<table>
<tr>
<th>Application:</th>
<td>IdentityIQ</td>
</tr>
<tr>
<th>Account:</th>
<td>testtx14</td>
</tr>
<tr>
<th>Request Type:</th>
<td>Create</td>
</tr>
<tr>
<th>Requested Value(s):</th>
<td>lastname = 'Testspt', firstname = 'Test', nationality = 'Indian', name = 'testtx14', contract_name = 'Testing contract Manpower Services Contract (FNRCO) ID:6600006666', company = 'Testing contract First National Human Resource', empGroup = 'Contractor', o365_license = '-', identity_type = 'Contractor', telNumber = '+966550709176', "manager = 'Abdul, Rehman'", base_org_name = '-', dept = 'Hr Services Department Om', jobTitle = 'test IAM ENGINEER', "Address = '""Sadara Business Complex(RD 145, First Industrial Support area)""'", Office = 'Admin building', mfa_mobile = '+966550709176', country = 'Saudi Arabia', State = 'Eastern', City = 'Jubail', Zip Code = '35717', post_box = '11811', Cost Center = '12345', division = '- HR Services Department om', orgName = 'HR Services Department om', base_org_id = '00000003', dept_id = '20000288', division_id = '00000000', org_unit = '20000238'</td>
</tr>
</table>
Thanks,
<br>Identity & Access Management Team.
</Body>
</html>
the above is the response which I am getting by the below code
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE EmailTemplate PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<EmailTemplate name="Sadara Identity Create Line Manager Approval">
<Body>
<![CDATA[<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
font-family: 'Arial';
}
th, td {
padding: 5px;
text-align: left;
}
th{
color: blue;
font-size: 14px;
}
td{
font-size: 12px;
}
</style>
</head>
<Body>
Dear $approverName,
<p>$requester is requesting the creation of a contractor account with the following details: </p>
#if ( $approvalSet.items )
<table class = "table">
<tr>
<th>Application</th>
<th>Account</th>
<th>Request Type</th>
<th>Requested Value(s)</th>
<th>Comments</th>
</tr>
#foreach ($approvalItem in $approvalSet.items)
<tr>
<td>$approvalItem.applicationName</td>
#if ( $approvalItem.nativeIdentity )
<td>$approvalItem.nativeIdentity</td>
#else
<td>N/A</td>
#end
<td>$approvalItem.operation</td>
#if ( $approvalItem.displayValue )
<td>$approvalItem.displayValue</td>
#elseif ( $approvalItem.csv )
<td>$approvalItem.csv</td>
#else
<td>N/A</td>
#end
#if ( $approvalItem.requesterComments )
<td>$approvalItem.requesterComments</td>
#else <td>-</td>
#end
#end
#end
</tr>
</table>
<p style="font-style: italic;"> To approve/reject go to https://myaccess.sadara.com/identityiq/manage/workItems/workItems.jsf </p>
Kind Regards,
<br>IAM Team
</Body>
</html>]]>
</Body>
<Description>
Email Template for notifying the line manager when they need to approve a request for creating third party contractors.
</Description>
<Signature>
<Inputs>
<Argument name="workflow" type="Workflow">
<Description>The Workflow object being executed.</Description>
</Argument>
<Argument name="item" type="WorkItem">
<Description>The WorkItem representing the review.</Description>
</Argument>
<Argument name="approvalSet" type="ApprovalSet">
<Description>The ApprovalSet object contained in the work item.</Description>
</Argument>
<Argument name="requester" type="string">
<Description>The display name of the Identity (Sponsor) that launched the workflow.</Description>
</Argument>
<Argument name="approverName" type="string">
<Description>The name of the first approver Identity (Line manager).</Description>
</Argument>
<Argument name="identityDisplayName" type="string">
<Description>The display name of the Identity being changed.</Description>
</Argument>
</Inputs>
</Signature>
<Subject> Contractor account create request for $identityDisplayName needs approval </Subject>
</EmailTemplate>
where my requirement stands to have the notification with the limited as
Subject: Account operations you requested for testtx14 were processed
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_10_679301877.1753862768322"
X-Mailer: smptsend
------=_Part_10_679301877.1753862768322
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
font-family: 'Arial';
}
th, td {
padding: 5px;
text-align: left;
}
th{
color: blue;
font-size: 14px;
}
td{
font-size: 12px;
}
</style>
</head>
<Body>
Dear Requester,
<br> <br>
The following actions you requested for identity 'testtx14' has been APPROVED. <br> <br>
<table>
<tr>
<th>Application:</th>
<td>IdentityIQ</td>
</tr>
<tr>
<th>Account:</th>
<td>testtx14</td>
</tr>
<tr>
<th>Request Type:</th>
<td>Create</td>
</tr>
<tr>
<th>Requested Value(s):</th>
<td>lastname = 'Testspt', firstname = 'Test', name = 'testtx14',company = 'Testing contract First National Human Resource', empGroup = 'Contractor', "manager = 'Abdul, Rehman'", dept = 'Hr Services Department Om', jobTitle = 'test IAM ENGINEER',</td>
</tr>
</table>
Thanks,
<br>Identity & Access Management Team.
</Body>
</html>
with lastname, firstnam, name, company, manager, dept, job title.
which are stored inside the $approvalItem.csv
When trying to get the data from csv the mail is not sending.
let me know if any additional information is needed