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 / Email address's not be...
Power Automate
Unanswered

Email address's not being recognized, error showing data is not string/email format

(0) ShareShare
ReportReport
Posted on by

Hello I have a flow that runs off a microsoft form. It sends an email to the email address selected from a question on the form. It has been working for a year up to a couple weeks ago. I get this error.

 

The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"name.lastname@company.com\n"' to be converted doesn't have the expected format 'string/email'.

 

josh2_1-1671467776855.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    It looks like you have a carriage return that is being included in the value you are submitting as the email.  That's what the \n is.  You'll need to do a replace() on the email be using it to remove that value.

  • Community Power Platform Member Profile Picture
    on at

    HI pstork1,

    Would this be written replace( "email address" ) or do you mean to just simply erase and replace the existing email address?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    I normally do that using the following.

    Replace(<<emailstring>>, decodeUriComponent('%0A'),'')

    But here's a good blog on the topic.

    How to replace new line ('\n') in a Power Automate expression (tomriha.com)

  • Community Power Platform Member Profile Picture
    on at

    After some thought.  I'm not sure how to implement this in my scenario. This flow is run off of a microsoft form and the To: value in the send email action could have 1 of 5 different email address's depending on which one is selected in the form.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Can you show some screenshots of your flow?

  • Community Power Platform Member Profile Picture
    on at

    josh2_0-1671719061008.pngjosh2_1-1671719080189.pngjosh2_2-1671719094629.png

     

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    What are people entering in response to the Assigned User IDs question?  The To field in the email needs to be a string with a semicolon delimited list of email addresses.  Unless that is what is being put in the answer in the form you'll need to process the answer to get that string.

  • Community Power Platform Member Profile Picture
    on at

    The Assigned User Id question response is a selection of email addresses (which is our User Id's), only 1 can be selected.  The answer for what goes in the To field is the same response.  It's interesting it isn't working because this same flow was working in previous months.

  • Community Power Platform Member Profile Picture
    on at

    I just tested this with a different selection (email address) to the question. And the flow ran. The only email address that it is failing on is mine. Could this be failing because the form is under my microsoft account, and it's not letting me send myself an email?

     

  • Community Power Platform Member Profile Picture
    on at

    That was it. I just re made the form and moved all the connections to a general company account and it is working fine now

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard