web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow - email when form...
Power Automate
Unanswered

Flow - email when form is completed

(0) ShareShare
ReportReport
Posted on by 26

Hello,

 

I've created a form and a flow to email contents from the form. 

 

There are multiple questions on the form.  I want the email to include information from each response as long as it's not blank. I want to add the dynamic content for each response that contains data and ignore it if it doesn't. 

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Hi there, 

     

    Sure, you'll use an expression for that. 

    For example:

     

    if(equals(outputs('Get_response_details')?['body/rff0b6cb059274e269bda63cde0759d2d'],null),'',outputs('Get_response_details')?['body/rff0b6cb059274e269bda63cde0759d2d'])
     
    The orange bit is an an expression of null, not just typed in. The overall if statement is an expression.
     
    So basically it's if(equals(FORMFIELD,null),'',FORMFIELD))
     
    If form field is empty, then nothing, otherwise, put the form field.
  • bguthrie Profile Picture
    26 on at

    Wow.  Thank you for the quick response.  I think I'm still not sure how to add it.  I've attached a screenshot.  For "Contacts Per Hour" sometimes it will have data and sometimes it won't.  In the email, if it has data, I want the email to display "Contacts Per Hour: 6.5", and if the field is left blank, I don't want the email to have anything in that spot, including the "Contacts Per Hour:" header.  Does that make sense?  flow1.PNG

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Ohh you don't want the header, either.  Okay! 

    It will look like this: 

     

    if(equals(outputs('Get_response_details')?['body/rff0b6cb059274e269bda63cde0759d2d'],null),'',concat('Contacts Per Hour:',outputs('Get_response_details')?['body/rff0b6cb059274e269bda63cde0759d2d']))

     

    In the email, it will end up looking like this (one of these for each field):

    Rhiassuring_0-1660157744034.png

     

    Also I just copied in the 'null' without doing the expression so I guess in this instance it can just be typed. News to me! 

     

    Anyway, to enter those in, click in the body of the email, click on the Expression tab to the right of the Dynamic Content tab. 

     

    You can copy paste this in:

     

    if(equals(FORMFIELD1,null),'',concat('FIELDTITLE:',FORMFIELD1))


    For the orange bit, you'll type it right on in there.  For the FORMFIELD1 (on both sides), use dynamic content and point it at the relevant form field.

     

     

     

  • bguthrie Profile Picture
    26 on at

    Got it!  Thank you so much!!!  That worked!

  • bguthrie Profile Picture
    26 on at

    wait, I'm sorry.  It looks like when it's blank, it's still showing the header.  This is what I'm using:

     

    if(equals(outputs('Get_response_details')?['body/r8d9398739dfa4414a2e2558bd007e59b'],null),'',concat('Contacts Per Hour: ',outputs('Get_response_details')?['body/r8d9398739dfa4414a2e2558bd007e59b']))
     
    It's still showing "Contacts Per Hour: " in the email

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard