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.
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)
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”}