cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyarbrough
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
v-yuazh-msft
Community Support
Community Support

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
v-yuazh-msft
Community Support
Community Support

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

thanks for the response. i worked around it.

Anonymous
Not applicable

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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,903)