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 / send emails to differe...
Power Automate
Unanswered

send emails to different people based on Forms Response using switch.

(0) ShareShare
ReportReport
Posted on by 29

I am trying to get the response from a Form and based on the response, send an email to different recipients. I am getting an error about branching. I dont have any branching in the form that is related the response for this flow. 

Rose708_1-1688076022169.png

 

Please help with suggestions.

Thank you!

 

 

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Are you able to show your flow in edit mode so we can see how you've configured it?

  • developerAJ Profile Picture
    4,763 on at

    expand send email notification and add the snip of error

  • Rose708 Profile Picture
    29 on at

    Hi all, here is the expanded view. it is a test flow so I can learn switch and incorporate it into my real flow. 

    Rose708_1-1688490428931.png

     

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Try wrapping the Switch with string(). 

    Rhiassuring_0-1688494642016.png


    (Where I have outputs('Compose'), you'd have your LOCATION NUMBER output from your form.) 

    (If you've added it correctly, it'll turn purple, like you see in the switch field.) 

     

  • Rose708 Profile Picture
    29 on at

    I was not able to get that to work 

    Rose708_1-1688495617848.pngRose708_2-1688495632869.pngRose708_3-1688495742709.png

     

  • trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at

    Hi @Rose708 ,

     

    I don't see you have marked a response as a solution, here's what I found.  I entered your flow in exactly as you have it and duplicated the error.  Next I made sure the my form question was a number value (by using restrictions).  Next I used compose and converted the value from get responses to number using int(). 

     

    This seems to work for me, let me know if this works for you too!  I was able to send an email to different addresses based on cases and then also send to a default case. Always glad to help!  Tom

     

    switch-email.png

  • Rose708 Profile Picture
    29 on at

    Thank you for that step, it makes sense. 

    I will keep testing.

  • trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at

    If that works, please mark as a solution so others can find it quickly too!  Always glad to help!  Tom 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard