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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send Email with Email ...
Power Automate
Unanswered

Send Email with Email Addresses Copied from Form Choices

(0) ShareShare
ReportReport
Posted on by 8

Hello! I have a form with a few questions. The last question allows the user to choose multiple email addresses, and those email addresses are to be copied on the response email. I've created a flow that pulls these email addresses into the "TO" line of the email, but it fails each time. I can't figure out why - can someone post an example flow for this process? I've searched the forum, but I can't seem to find a solution that my non-developer brain can understand.

Categories:
I have the same question (0)
  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Hello @CS615 

     

    What is the error message? Can you post a screenshot of the action that fails? Have you separated the email addresses?

  • CS615 Profile Picture
    8 on at

    Hi, @Matthy79. Yes, here is a screenshot of the error. The form is adding brackets and backslashes to the email addresses, so I have a feeling that's why it's failing. I've tried various replace functions to get rid of the unwanted characters, but I don't think I'm doing it correctly. 

    Send Form Responses via Email Flow Screenshot.jpg

  • Verified answer
    Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    It seems you receive an array from the form. You can use „join“ to get it in the correct format. I think , or ; should be used to join this array.

  • CS615 Profile Picture
    8 on at

    Hmmm, makes sense. I used the "Data Operation - join" action to change the commas to semicolons, since that's what our email program requires for multiple email addresses. I was hoping to use the outputs of this action in the "send email" step, but I received the following error:

     

    Unable to process template language expressions in action 'Join' inputs at line '0' and column '0': 'Deserialized JSON type 'Newtonsoft.Json.Linq.JValue' is not compatible with expected type 'Newtonsoft.Json.Linq.JArray'. Path 'from'.'.

  • CS615 Profile Picture
    8 on at

    Oops, nevermind - I think I got it! I needed to use the correct JSON expression, and it seems to work now. Thank you for your help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard