Requirement: Enable the workflow, to send email to user whenever any AD accounts gets created(Multiple AD)
Can we trigger provision completed workflow trigger for multiple sources in a single workflow?
If yes ,
Hi @nidhipriya , You can use the Compare String function to add the required application conditionally.
For example, use a Compare String to check if the source is AD—if true, then go for Send Mail. If false, nest another Compare String to check for the next source, and continue this pattern for the remaining applications.
I understand it’s more of a workaround, but this is the approach I typically follow.
When you use By Identity it will return you all accounts of the user. So account[0] won’t necessarily be the latest created account that you are looking for. You may probably want to search for that account using source id or name.
I am not sure about your email contents but it if its basic account data, that is available in the trigger itself, you won’t need to do a Get Accounts. If not the account selection should help you fetch the right account to get details. The filters I provided work, not sure why it’s not working on your end. Please try to refine your filter query and that should help you.
I am using below expression to store value of employeeID in def variable .
its not fetching value
“$.trigger.accountRequests[*].attributeRequests[?(@.attributeName == "employeeID")].attributeValue”
Maybe the employeeID attribute is not part of the attribute requests. You can output the trigger details directly in an email to verify the request being received. This will help you filter the data as required.
@nidhipriya Check whether the variableA returning array output. Define Variable will not handle the arrays and it leads to give you an empty output. If it is an array, your Define Variable input can parse the result but not returns anything in the output.