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:
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard