jsgentry1
(Jonathan Gentry)
September 16, 2024, 6:48pm
1
Which IIQ version are you inquiring about?
8.3
Please share any other relevant files that may be required (for example, logs).
EmailTemplate-LcmUserNotification.xml (5.2 KB)
Share all details about your problem, including any error messages you may have received.
We are getting the error below when trying to send email with the attached template:
2024-09-16 14:27:36,149 INFO [stdout] (Thread-260) 2024-09-16T14:27:36,149 WARN Thread-260 sailpoint.request.RequestHandler:209 - sailpoint.request.RequestPermanentException: Unable to send email notification, a to address was not specified
2024-09-16 14:27:36,149 INFO [stdout] (Thread-260) at deployment.identityiq.war//sailpoint.request.EmailRequestExecutor.execute(EmailRequestExecutor.java:87)
enistri_devo
(Emanuele Nistri)
September 16, 2024, 10:09pm
2
Hi @jsgentry1 ,
in your WF are setting to
argument? Like this:
<Step action="call:sendEmail" condition="script:Util.csvToList(notificationScheme).contains("user")" icon="Email" name="Notify User" posX="98" posY="10">
<Arg name="template" value="ref:userEmailTemplate"/>
<Arg name="to" value="script:getUserEmail(identityName, plan)"/>
<Arg name="approvalSet" value="call:prepareApprovalSetForNotification"/>
<Transition to="Notify Requester"/>
</Step>
Arun-Kumar
(Arun Kumar)
September 17, 2024, 5:50am
3
Hi @jsgentry1 ,
Add to arg in workflow sendEmail step. You can write a script tp send an email to requester or requester manager. Please refer the below script.
<Arg name="to">
<Script>
<Source>
<![CDATA[
import sailpoint.object.Identity;
Identity requesterIdentity = context.getObjectByName(Identity.class, identityName);
Identity manageridentity = requesterIdentity.getManager();
if(null != requesterIdentity)
return requesterIdentity.getStringAttribute("email"); // send email to requester
/*
if(null != manageridentity)
return manageridentity.getStringAttribute("email"); //send email to requester manager
*/
else
return "[email protected] "; //default email
]]></Source>
</Script>
</Arg>
Regards,
Arun
jsgentry1
(Jonathan Gentry)
September 17, 2024, 12:20pm
4
I don’t believe the Workflow is the problem. The default e-mail message comes across fine; it’s only when I try to use HTML that the problem occurs.
jsgentry1
(Jonathan Gentry)
September 19, 2024, 2:50pm
5
As you can see from the filename of the template I attached, we are trying to add HTML to the LCM User Notification message. Could you tell me if the template is wrong? If so, how?
Arun-Kumar
(Arun Kumar)
September 20, 2024, 4:06am
6
In CDATA sections, you can use &&
instead of &&
to represent the ampersand character (&
).
Also, you can test the EmailTemplate using rule. Please test the emailTemplate and post, if you get any error message.
1 Like
jsgentry1
(Jonathan Gentry)
September 20, 2024, 1:26pm
7
Replacing the &s did the trick! Thank you so much!
system
(system)
Closed
November 19, 2024, 1:27pm
8
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.