cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cyarbrough
Level: Powered On

using dynamic content in expression output

hi,

 

i'm using a flow to send an html email from a trigger in powerapps. i want one section of the email to only show if a certain field in powerapps is not blank. here is the email body:

2018-09-11_12-26-01.png

 

the first expression near the bottom is the one i've having trouble with:

 

 

if(equals(triggerBody()['Sendanemail_Body_6'],string('true')),
'<tr>
<th style="padding: 5px 10px 5px 10px;"><div align="left">Resolution:</div></th>
<td style="padding: 5px 10px 5px 10px;"><div align="left">@{triggerBody()['Sendanemail_Body_8']}</div></td>
</tr>'
,'')

this is what i want, but it's giving me an error ("The expression is invalid") every time i try to update the expression. how can i use the Sendanemail_Body_8 field in the output here?

 

the second expression is similar, but doesn't use any dynamic content in its output. it works fine:

if(equals(triggerBody()['Sendanemail_Body_7'],string('true')), 
'<tr><th colspan="2" style="padding: 5px 10px 5px 10px;">New Attachments</th></tr>'
,'')
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: using dynamic content in expression output

Hi @cyarbrough,

 

I have made a test on my side and the issue is confirmed on my side.

 

I afraid that use an dynamic content expression in expression output is not supported in microsoft flow currently.

 

Please take a try to just add the dynamic content instead of the expression in the expression output to see if it works:

Capture.PNG

 

 

Best regards,

Alice

3 REPLIES 3
Community Support Team
Community Support Team

Re: using dynamic content in expression output

Hi @cyarbrough,

 

I have made a test on my side and the issue is confirmed on my side.

 

I afraid that use an dynamic content expression in expression output is not supported in microsoft flow currently.

 

Please take a try to just add the dynamic content instead of the expression in the expression output to see if it works:

Capture.PNG

 

 

Best regards,

Alice

cyarbrough
Level: Powered On

Re: using dynamic content in expression output

thanks for the response. i worked around it.

Staceya
Level: Power Up

Re: using dynamic content in expression output

Hi All,

I am trying to add dynamic content with flow, within our school's counseling system. When a student check's in and selects their counselor, when they click submit, I want to trigger an email.

 

In google forms + Sheets, I use "FormMule" to do this.

 

 

I am using "forms for excel" online.

 

Does anyone have any code that I can use. Basically, I want:

 

if (person is selected)_(email "this")


Thanks,

 

 

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 386 members 5,783 guests
Please welcome our newest community members: