Skip to main content

Notifications

Power Automate - General Discussion
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!

 

 

  • trice602 Profile Picture
    trice602 11,729 on at
    Re: send emails to different people based on Forms Response using switch.

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

  • Rose708 Profile Picture
    Rose708 29 on at
    Re: send emails to different people based on Forms Response using switch.

    Thank you for that step, it makes sense. 

    I will keep testing.

  • trice602 Profile Picture
    trice602 11,729 on at
    Re: send emails to different people based on Forms Response using switch.

    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
    Rose708 29 on at
    Re: send emails to different people based on Forms Response using switch.

    I was not able to get that to work 

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

     

  • Rhiassuring Profile Picture
    Rhiassuring 8,688 on at
    Re: send emails to different people based on Forms Response using switch.

    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
    Rose708 29 on at
    Re: send emails to different people based on Forms Response using switch.

    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

     

  • developerAJ Profile Picture
    developerAJ 2,837 on at
    Re: send emails to different people based on Forms Response using switch.

    expand send email notification and add the snip of error

  • Rhiassuring Profile Picture
    Rhiassuring 8,688 on at
    Re: send emails to different people based on Forms Response using switch.

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard