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 / Insert 'From' Input in...
Power Automate
Answered

Insert 'From' Input in mail object not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone !

 

A customer is asking me for a simple flow but I found an issue I can't manage.

The use case is simple : this customer needs a flow where a mail is dropped in a mail account. Depending of the domain name of this mail, it is redirected with some informations in its body to a special mail box where this mail will be processed by another service. This part is easy.

However, he's asking me to put in the Object field of the mail the 'From' expression that I get with the Outlook trigger of the flow. And this part doesn't work. The error message is this one (sorry for the translation) : The "inputs.parameters" element of the workflow operation "Envoyer_un_e-mail_(V2)" of type "OpenApiConnection" is not valid. Error details: The input parameter "emailMessage/To" must be of type "String/email". The runtime value "From" to be converted does not have the expected "string/email" format.

 

I thought I could use the Initialize variable function to put it as a string variable, but the issue still remains.

 

Would you know how to fix this issue ?

 

Thanks for your help !

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    Can you post a screen shot of your Flow?  That will make it much easier to assist.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello ScottShearer,

     

    Thank you for your answer. Yes, of course. Please note that the flow I am showing you contains some tests I've done with variables.

     

    flow1.PNG

     

    flow2.PNGAs you can see, I tried to make a kind of parsing action. I think that the email is detected, even in string, when it's put in Object. The problem is that my client want to have this information in Object.

     

    Thank you very much ! 

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    If I understand correctly, Flow is complaining about the "To" filed in the email.

    Can you post a screen shot of the output of the MailToModify variable after a run?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have this in the log :

     

    {
        "host": {
            "connectionReferenceName""shared_office365",
            "operationId""SendEmailV2"
        },
        "parameters": {
            "emailMessage/To""De",
            "emailMessage/Subject""firstName.lastName@gmail.com / [EXTERNAL] Test 4",
            "emailMessage/Body""<p><html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body><div dir=\"auto\">Test 4</div></body></html></p>"
        }
    }
     
    It's strange because it's seems to work when you look at the mail in the Subject part. The mail seems to be well-added.
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    Can you screenshot the mailToModify variable after a run - see my example below

    image.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, sorry !

     

    InkedCapture_LI.jpg

     

    The last value is my firstName.lastName@gmail.com.

     

    Thanks !

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    I am an idiot. 😃 I have misread the error message. The problem came from the way I modified the email. The correct way is to initialize the variable simply, then the replace function needs to be used in the To field of the mail, not directly in the variable initialization.

    Licanor_0-1644939386252.png

     

    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

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard