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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

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.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,450)