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.