cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jaehun
Frequent Visitor

How to send PowerApps HTML from Microsoft Flow

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: How to send PowerApps HTML from Microsoft Flow

Hi @jaehun ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Community Support
Community Support

Re: How to send PowerApps HTML from Microsoft Flow

Hi @jaehun ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jaehun
Frequent Visitor

Re: How to send PowerApps HTML from Microsoft Flow

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.

Community Support
Community Support

Re: How to send PowerApps HTML from Microsoft Flow

Hi @jaehun ,

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support
Community Support

Re: How to send PowerApps HTML from Microsoft Flow

Hi @jaehun ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jaehun
Frequent Visitor

Re: How to send PowerApps HTML from Microsoft Flow

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.

Community Support
Community Support

Re: How to send PowerApps HTML from Microsoft Flow

Hi @jaehun ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jaehun
Frequent Visitor

Re: How to send PowerApps HTML from Microsoft Flow

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.

 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,386)