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 / Sending an email based...
Power Automate
Answered

Sending an email based on a Response not working.

(0) ShareShare
ReportReport
Posted on by 6

Hi

 

I have a very simple Microsoft teams form. When it gets completed i would like an email to be sent to the people selected on the form. However i just seem to get error messages every time i try.

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"[\"Olivia.xxxxx@xxxxxx.co.nz\"];Olivia.xxxxx@xxxxxz"' to be converted doesn't have the expected format 'string/email'.

 

Below is my form i that i built. The answers to question 2 and 3 are who i want the email to send to.

LIVVY_0-1677706904682.png

LIVVY_1-1677706984908.pngLIVVY_2-1677707333250.png

 

Thanks in advance for your help. 

Categories:
  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    Hi @LIVVY 

     

    Question 3 Operator is a multi-select field. This means that the responses for Question 3 will be contained within an array because the user can select zero or more options as the response.

     

    For example, if I selected all the Operators:

     

    Snag_1f67ac.png

     

    the response would be stored in an array and look something like this:

    ["Allen@mail.com", "Andre@mail.com", "Alex@mail.com", "Atarang@mail.com"]

     

    and that array can't be used in the Send an Email action because that action is expecting a string of email addresses.

     

    We can use the Join action to join all of those email addresses in the array to a string that can be used in the Send an Email action

     

    Snag_2c16dd.png

    The Join action takes the array ["Allen@mail.com", "Andre@mail.com", "Alex@mail.com", "Atarang@mail.com"] and transform it to a string of email addresses with each email address separated by a semi-colon:  Allen@mail.com;Andre@mail.com;Alex@mail.com;Atarang@mail.com

     

    Use the output of the Join action in the To field of the Send an Email action:

    Snag_38d8cb.png

    Make sure though that the options in question 2 and 3 are just plain text strings representing the email addresses:

    Snag_34382a.png

     

    Hope this helps.

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

     

     

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @LIVVY ,

     

    @ekarim2020 , provides a correct solution. I just add a little bit.
    In Flow, your operator will appear with ["email@email.com", "email2@email.com", "email3@email.com"] format. Although it looks like an array, it is actually a string. If you use Operator directly in Join, you will get an error. 

    vdezhilimsft_0-1677724895960.png

    vdezhilimsft_1-1677724930226.png

    vdezhilimsft_2-1677724952747.png

    I recommend using the JSON() formula to convert it into a real array.

    vdezhilimsft_3-1677725009000.png

    vdezhilimsft_4-1677725049628.png

    OR:

    vdezhilimsft_6-1677725157684.png

    vdezhilimsft_5-1677725129863.png

    If we solved your problem, you can mark @ekarim2020 's reply as a solution.

     

    Best Regards,

    Dezhi

     

     

     

     

     

  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    Thanks @v-dezhili-msft , I forgot mention the JSON() function to convert the Operator property to an array.

  • LIVVY Profile Picture
    6 on at

    Thank you @ekarim2020  @v-dezhili-msft  my flow now works 🙂

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard