cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

View solution in original post

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

View solution in original post

cyarbrough
Level: Powered On

Re: using dynamic content in expression output

thanks for the response. i worked around it.

Highlighted
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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 316 members 5,695 guests
Recent signins:
Please welcome our newest community members: