Is there any way to limit the send email action inside the loop?? I have comparing the source name eq AD if not send the email to IAM team else some http operation. Any idea how to prevent this?
I have moved the send email to outside the loop but other than that is there any method to overcome within the loop.
No it’s working fine but it was sending the email as 4 times since i have check whether the loop.sourceName is AD, so the identity test having 6 accounts but the first 4 accounts failing so it sending the email after the loop comes into 5 time it was triggering the http request.
i want to send the email only once when the condition not meets but as of now it’s inside the loop so it was sending whenever the condition fails.
Sure will attach the sample here.
set a variable outside the loop set to say false
inside the loop set it to true when when you have sent the email but alway check for the variable being false before sending another email.
Instead of using a loop, use “Verify Data Type” with “Exists” operator on getAccounts. If exists, then send HTTP operation and if does not then send email
@iamnithesh I need loop bcz some users have multiple Entra ID source since they are having additional permissions like Admin, Standard account and etc.