Identity Attribute Change workflow, Email is not going through

Hello Experts,

I created a workflow that will trigger when an attribute value is changed. The workflow is getting triggered and also executing but the workflow do not send any emails.
I have a feeling I am doing something wrong in Get Identity action item.

Trigger is Identity Attribute Changed


Operator is compare string

GetIdentiy1 is fetching manager

for testing the email are being sent to my mailbox

Any suggestion will be helpful.

Hi,

Did you tried in test workflow. Also after execution you can download the execution report which will have all the steps and result.

You need to check if send email is executing or not.

-Abhinov

1 Like

Hello @Abhinov7 ,

As you suggested I looked in the execution flow, The workflow is going up to first GetIdenity and Ending.

Could you help me understanding this?
“Get Identity”,“VariableA.$”:“$.trigger.attributes.preStale”,“VariableB”:“true”}

Thank you

Check if the Test Address is set . Navigate to below
Admin → Global → Email Templates -->Settings

Also did you check audit ? if the Audit says that system has sent any email ?

1 Like

@vishal_kejriwal1

Yest, test address has been set. But test address is the same address that we want email to go.

No email has been sent.

Hi Rita,
I’m guessing that you’re exiting the workflow at the ‘compare strings’ step. Your compare strings should target the trigger.changes.attribute field, but since you’re going for trigger.attributes, you’re likely having an empty preStale and then exiting the workflow.

If you only want the workflow to trigger when certain preStale strings are found, modify your trigger to be more specific. You can use the ‘advanced’ setting. This will mean the workflow will only fire in the exact scenario you want, rather than any time preStale changes.

See a below example for a possible trigger filter: $.changes[?(@.attribute == \"preStale\" && @.newValue=='true')] .

1 Like

Hello @margocbain

Do I still need to put the value 2?

Thank you

I would suggest click on any Email template (test) to check . Also do you see Audit ?

@vishal_kejriwal1

When I test existing email template the email is being sent.

Yes, audit doesn’t show any email sent for this workflow.

Also I haven’t created any email template for this workflow. Do I need to create one?
Thank you

then it’s problem with your workflow . When you send email from workflow you need to select send email action . WF doesn’t give option to attach the email template.

Add “Send Email” action to your workflow

As you said “The workflow is going up to first GetIdenity and Ending.” and I’m assuming that you’re sending the email to the manager.
It could be a problem with the get manager, maybe it returns an incorrect output that prevents the workflow from continuing
Use $.getIdentity.managerRef.id instead of $.getIdentity.attributes.manager ,before that check if the identity in test has an existing manager in ISC

Hi Rita,
If you update the trigger in the manner I suggested, you should be able to remove the ‘Compare Strings’ step entirely
Thanks,
Margo

Hello Everyone,

Thank you for your suggestions. With all your suggestion I was able to fix the workflow.

I don’t think I can mark more than one suggestion as solution.

@margocbain Yes, I was able to remove Compare String step at all. Thank you for your suggestion.

@srezzaki Yes with this $.getIdentity.managerRef.id I was able to pull the correct manager.

@vishal_kejriwal1 The issue was with workflow and able to fix.

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