cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Helper III
Helper III

Re: using dynamic content in expression output

thanks for the response. i worked around it.

Highlighted
New Member

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 Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,351)