Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Formatting the body of an Email



I have a Flow that takes data from a Form and sends it via email. 

For example, the email will return something like this after the Form is submitted:


Your Name: John Doe


Location: Remote

Computer Name:


What I want is to *not* have things like "Role:" and "Computer Name:" come up at all in the email if the questions weren't answered in the Form. Is there a way to do this? Thanks for any help or advice you may have!


Level: Powered On

Re: Formatting the body of an Email

Just don't add those Dynamic content parts to the body of the email - only add the ones you do want!

Level: Power Up

Re: Formatting the body of an Email

Sometimes those questions are answered and would need to be included in the email. So basically, if it's answered, I want it in there, and if it's not answered, I don't want it there.

Community Support Team
Community Support Team

Re: Formatting the body of an Email

Hi @bprovost ,


You could refer to the following method to configure Flow.

  • Determine if the answer is empty, and if it is not empty, append the question and answer to the variable.
  • It is also recommended to set some required questions to Required. For example, Your Name is a required question ,this answer can be configured directly in the Email body.


  • Use Condition to determine if the submission is empty, and if not, append the content. The configuration of several Conditions is similar.

Image reference:


Hope it helps.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Power Up

Re: Formatting the body of an Email

The form is over 40 questions long with many multiple answers for each question. Is there a way to do this in an expression within the body of the email, so that if a field has a value, it publishes the category with the response?


For example, a different part of the flow takes a log input by a user that typically runs together as one paragraph. I have an expression written in the body of the email that takes that log and puts every sentence on its own line, thus formatting it correctly. That expression is:









I essentially want to do something similar, but with adding or not adding a category if there is an answer to a question on the form.

Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,098)