IdentityNow Workflows - Send Email

Hi, i have a Workflow that send a email when a account changes the LifeCycleState my problem it’s with the UserEmail variable when the email is sent the user email domain is replaced by http://mydomain.com.
If my email is [email protected] when the email get on my mail box it was replaced by yan.coelho@http://mydomain.com.

Any ideas what could be causing that behavior?

My Html:

<ul>
  <li><strong>Name:</strong> ${displayNameUser}</li>
  <li><strong>Email:</strong> ${userEmail}</li>
  <li><strong>Type:</strong> ${employeeType}</li>
  <li><strong>Date of Birth:</strong> ${dateOfBirth}</li>
  <li><strong>CPF:</strong> ${cpf}</li>
</ul>

image

I would recommend looking at the Identity Attribute userEmail and confirm it has the correct data. Maybe there is a different Identity Attribute that you need to use instead, like Work Email (email)

This seems like a bug to me. I think you should open a ticket with SP

1 Like

Hi Carl, I’ve mapped another attributes and got the same behavior!

Then I concur with @iamology, open a ticket with Support.

Use “Identity Attribute Change” trigger. Trigger when lifecyclestate changes.
Then use action “getIdentity”.
I see you are using templating context.
Can you share your Templating Context. I think your templating context is not well set.
And that may be the issue.
Your userEmail should be defined as:
{"userEmail.$":"$.getIdentity.attributes.email"}

I think this will solve your issue.
Let me know if this works.

Hi Danish, sorry for the delay.
Here’s my template:
{“area.$”:“$.getIdentity.attributes.area”,“company.$”:“$.getIdentity.attributes.thirdpartycompany”,“cpf.$”:“$.getIdentity.attributes.cpf”,“dateOfBirth.$”:“$.getIdentity.attributes.dateOfBirth”,“displayNameManager.$”:“$.getIdentity1.attributes.displayName”,“displayNameUser.$”:“$.getIdentity.attributes.displayName”,“employeeType.$”:“$.getIdentity.attributes.type”,“firstNameUser.$”:“$.getIdentity.attributes.firstname”,“jobTitle.$”:“$.getIdentity.attributes.jobTitle”,“lastNameUser.$”:“$.getIdentity.attributes.lastname”,“location.$”:“$.getIdentity.attributes.workplace”,“startDate.$”:“$.getIdentity.attributes.startDate”,“userEmail.$”:“$.getIdentity.attributes.email”}

Hi @coelhoya2,

I don’t what cause this issue but http:// should not be added.

Can you try this ? :

<ul>
  <li><strong>Name:</strong> ${displayNameUser}</li>
  <li><strong>Email:</strong> ${userEmail.replace("http://", "")}</li>
  <li><strong>Type:</strong> ${employeeType}</li>
  <li><strong>Date of Birth:</strong> ${dateOfBirth}</li>
  <li><strong>CPF:</strong> ${cpf}</li>
</ul>
1 Like

Sorry for the delay but doesn’t worked.

I created a table and worked but it’s kinda odd why didn’t work the other way.

<table style="width: 100%; border-collapse: collapse;">     
	<tr>         
		<th style="border: 1px solid black; padding: 8px; text-align: center;">Bussines Name</th>         
		<th style="border: 1px solid black; padding: 8px; text-align: center;">E-mail</th>         
		<th style="border: 1px solid black; padding: 8px; text-align: center;">Job Title</th>         
		<th style="border: 1px solid black; padding: 8px; text-align: center;">Area</th>
	</tr>     
	<tr>         
		<td style="border: 1px solid black; padding: 8px; text-align: center;">${displayNameUser}</td>         
		<td style="border: 1px solid black; padding: 8px; text-align: center;"><a href="mailto:${userEmail}">${userEmail}</a></td>         
		<td style="border: 1px solid black; padding: 8px; text-align: center;">${jobTitle}</td>         
		<td style="border: 1px solid black; padding: 8px; text-align: center;">${area}</td>   
	</tr> 
</table> 

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.