How to Send email to every App Owners on the list on the Azure Logic App?

user20201 346 Reputation points
2022-12-29T01:19:27.197+00:00

I have a logic app that is connected to the Azure Function. Attached image is the output When a HTTP request is received from the Azure Function. Since the output is displaying a list on the "Body", how can I send email notification to every "Owners" using Logic App? (email to number 1, separate email to number 2 and so on the list)

274647-image1.png

I am a beginner only on Logic App and trying Initialize Variable action but still on familiarization.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,206 Reputation points
    2022-12-29T01:55:33.68+00:00

    Hi,

    You can Parse the JSON which you get in the action as explain in the following link and get all the Owners:

    https://learn.microsoft.com/azure/logic-apps/logic-apps-perform-data-operations?WT.mc_id=DP-MVP-5001699#parse-json-action

    next use "Foreach" loop and check the email of the owner -> send him email using one of the email actions like Send email (V2)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.