We have a working workflow to send an email when an account is set to active, we also want to retrieve the email address of the manager of the Identity and include the manager as a recipient.
@mbradshaw The given JSON is not a complete one, please provide the valid JSON. Anyway, on your ask to include the manager as a recipient, follow the below steps
Action - Get Identity ($getIdentity): This is to get the active identity’s details
Operator - Verify Data Type: Check whether the identity has a manager by using value = $.getIdentity.managerRef.id and Data Type = Exists
Action - Get Identity ($getIdentity1): When #2 is true, get the manager identity’s detail by passing the value $.getIdentity.managerRef.id
Action - Send Email: Add the managers email id in the recipient list as below and add other email IDs too if you needed:
Point #3 is doing that. You need another Get Identity (getIdentity1) action to get Manager identity’s email. In #4, it is referred to $.getIdentity1.attributes.email in recipientlist.
So, you should have 2 Get identity action in your workflow.
You can attach the Workflow’s JSON file in the post. Anyway below is a sample Workflow JSON which is doing the job what I explained in the previous thread.