web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft Forms- answe...
Power Automate
Unanswered

Microsoft Forms- answer specific emails

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have set up a Flow that notifies me when responses are received to a Form.

 

However, I was to set up a flow tha sends the notification to a specific email address depending on the answer, so that the most apprpriate person deals with it. Despite trying to do this, it doesn't seem to be working for me. 

 

Can anyone give me any tips? Thanks.

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi _David_,


    According to your description, I created a flow likes below. When a response is submitted, send email to specific email address depending on the answer.


    In the To field of “Send an email”, I entered a function which will return specific email address according to the answer.


    Click the field, then click Expression tab, then enter the following function:

    if(equals(body('Get_response_details')?['rbe4ddbe259414a07926a88904940e862'],'bad'),'AAA@testemail.com',if(equals(body('Get_response_details')?['rbe4ddbe259414a07926a88904940e862'],'good enough'),'BBB@testemail.onmicrosoft.com','CCC@testemail.onmicrosoft.com'))

     

    3.PNG

     

    I have tested it on my side and it is working fine. You could adjust the code according to your needs.

     

    You could get more details about the function from this doc on workflow definition language:
    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Best regards,
    Mabel Mao

  • Flowbginner Profile Picture
    38 on at

    Hey when i use the code you mentioned the flow works and displays the values i mentioned in the form in the email.

     

    Unfortunatly the email is always send to the default email adress specified in the 3th value (else) of the if clause.

     

    can you help me here? 🙂

  • MarkStokes Profile Picture
    561 on at

    Did you change the sample code to match against your own form answers?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard