Retreive approver of Azure Logic App Action "Send approval email"

Simon Bang Pedersen - SIPE 5 Reputation points
2024-10-02T12:20:04.2566667+00:00

I have created a Logic App workflow that sends an email to several users.

When one of the users approves the "Send approval email," I send an email to all of the users confirming that they have received the approval email. Some of the flows are sent to at least 10 users.

I want to extract from the approval email which users have approved it (their email address, user ID, name, etc.).

However, when I look at the succeeded flows, the information about the users who approved is set to null in all the parameters (see the picture below).

Does anyone know how I can retrieve the email addresses of the users who confirmed the email?

User's image

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

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 24,951 Reputation points Microsoft Employee Moderator
    2024-10-03T06:18:17.96+00:00

    @Simon Bang Pedersen - SIPE Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    I understand that you want to pull the "userEmailAddress" of the user who has approved or rejected the send approval email action in your logic app.

    If my understanding is correct, then try making the below changes to the Send Approval Email action in your logic app.

    User's image

    I have made the above changes and tested in my local environment; we are able to receive the approved person user email id without any issues.

    Here is the sample output screenshot for your reference:

    User's image

    Hope this helps, let me know if you have any further questions on this.

    Please accept as "Yes" if the answer is helpful so that it can help others in the community.


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.