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 Apps / How to send PowerApps ...
Power Apps
Answered

How to send PowerApps HTML from Microsoft Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I wrote HTML text called 'mailBody' in PowerApps.
How do I send it when I try to send it from Microsoft Flow?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to send a HTML text created in your app using Microsoft Flow?

    If you want to send a HTML text created in your app using Microsoft Flow, you need to pass the HTML text (called 'mailBody') from your app to your flow firstly. Then you could use the passed HTML text (called 'mailBody') within your flow.

    Based on the needs that you mentioned, I think the PowerApps Trigger button could achieve your needs. I have made a test on my side, please take a try with the following flow's configuration:5.JPG

    Within your app, you could call/fire the flow using the following formula:6.JPG

    Set the OnSelect property of the "Send Email" button to following:

    '20190218_case8_1'.Run(HtmlText1.HtmlText)

    On your side, you should type:

    'YourFlowName'.Run(HtmlText1.HtmlText) /* <-- HtmlText1.HtmlText represents the 'mailBody' HTML text that you mentioned */

    More details about starting a flow from an app, please check the following article:

    Start a flow from an app

    Please also check and see if the following video would help in your scenario:

    https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be

    https://www.youtube.com/watch?v=2rfAQe1kK8M

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @v-xida-msft 

     

    The following HTML text is in the PowerApps app.

    "안녕하세요.<br>
    주문하신 내역은 다음과 같습니다.<br><br>
    "
    &
    Concat(Filter(CollectionKiosk,Quantity>0),
    "<br><b>항목: </b>"
    &
    Title
    &
    "
    <br><b>주문수량: </b>"
    &
    Quantity
    &
    "개
    <br><b>금액: </b>"
    &
    Total
    &
    "원<br><br>")
    &
    "
    <b>총 합계: </b>"&Sum(CollectionKiosk,Total)&"원
    <br><br>
    감사합니다."

    The PowerApps button associated with the Flow is set as follows:

    PowerApps button.Run (InputAddress, mailBody.HtmlText);

    And finally, the body of the message to be sent consists of triggerBody().

    1.png

     

    Thank you for your support.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Based on the issue that you mentioned, I think you have some misunderstanding in how to pass parameters from an app to a flow.

    If you want to pass values from an app into a flow, you must specify the parameters you want to pass within your flow firstly using "Ask in PowerApps" dynamic content from the "PowerApps" trigger button (rather than using triggerBody() function).

    Please check the attached GIF screenshot for more details:

     

    Best regards,

    Test.gif
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Have you solved your problem?

    If you have solved your problem, please go ahead to click "Accept as solution" to identify this thread has been solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Can not process template language expressions for 'Send e-mail' task input in row '1', column '1986': '' Send e-mail_context '' attribute does not exist, TriggerBody () ['Send email_text'] 'Template language expressions can not be evaluated because _To, Send email _Body'. For more information, please visit https://aka.ms/logicexpressions. '.

    Sorry. Even if you set it as you told it, the flow will show an error.

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

    Hi @Anonymous ,

    Could you please share a screenshot about your flow's configuration?

    Do you type the "Ask in PowerApps" dynamics content within the Body field of the "Send an Email" action?

    Please make sure the parameter value you passed from your app is a proper HTML text value.

     

    Please consider take a try to re-create a new flow on your side, then within the new flow, specify the parameters you want to pass from your app via using the "Ask in PowerApps" dynamic content.

    After that, within your app, create a new flow connection based on your new created flow, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xida-msft ,

     

    I have tried many methods but it seems that collections and functions like concat() used in PowerApps can not be passed as parameters of Flow.

    I am going to try to implement many of the logic that PowerApps processes in Flow. Thank you for your help so far.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard