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 / Power BI button click ...
Power Automate
Answered

Power BI button click - 'Send_an_email_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To'

(0) ShareShare
ReportReport
Posted on by 45

Hi,

 

This has me stumped.

I had a working flow that posted a Teams message and sent an email when a button was clicked on a Power BI report.

I had to recreate/migrate this to a new account. It was a simple flow so I recreated from scratch on the new account. 

Created from within the Power BI report. 

 

I am now getting an error. This occurs from both the owner account or a 'run as' account from both PBI Desktop and the report published to the service.

 

Error:

 

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 '"eGEtcG93ZXJBdXRvbWF0ZUBjMy5jby5ueg=="' to be converted doesn't have the expected format 'string/email'.

 

KimP_1-1653455553071.png

 

Raw Input (replaced sensitive info with 'myData'):

 

{
 "host": {
 "connectionReferenceName": "shared_office365_1",
 "operationId": "SendEmailV2"
 },
 "parameters": {
 "emailMessage/To": "eGEtcG93ZXJBdXRvbWF0ZUBjMy5jby5ueg==",
 "emailMessage/Subject": "Cart In by Month exported at 2022-05-25T04:42:15.9071601Z",
 "emailMessage/Body": myData,
 "emailMessage/Attachments": [
 {
 "Name": "2022-05-25T04:42:15.9071601Z.csv",
 "ContentBytes": myData
 }
 ]
 }
}

 

 

Flow:

KimP_0-1653455355688.png

 

Any help appreciated. 

 

Thanks,

Kim

Categories:
I have the same question (0)
  • Verified answer
    KNP Profile Picture
    45 on at

    Well, that was frustrating.

    After digging into the output of the trigger action, I found the issue, and it's a new one because this was previously working fine.

     

    When you edit the button from PBI Desktop and create your flow. Choosing the 'User Email' from the available content, i.e. from the button clicked trigger action, gives the encoded version. (ignore the 'x-ms-user-email' in the image, that was added in the solution below)

    KimP_0-1653466710829.png

     

    Solution

    I couldn't fix this from PBI Desktop as you don't have access to the expression editor, so I went to Power Automate and edited the flow. Go to the expression editor, select the 'User email' and remove the '-encoded'.

    Replace the 'User email' in the Teams and Email action with the output from this compose.

     

    KimP_1-1653466926594.gif

     

    Hope this saves someone else some time.

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard