Skip to main content

Notifications

Community site session details

Community site session details

Session Id : S20g2KelkHAm7cC8RzEwiU
Power Automate - Building Flows
Answered

Skipping Empty Fields in Forms

Like (0) ShareShare
ReportReport
Posted on 26 May 2022 18:33:25 by

I have created a flow triggered by a Microsoft Forms being filled out and submitted, however I am struggling to figure out how to skip fields in Forms if they are empty. Currently when the form is submitted, the empty field will empty out that part of the SharePoint List. Below is what I currently have.

 

salvaniaj_2-1653589910299.png

 

 

salvaniaj_0-1653589820111.png

 

The result of updating 1 field and leaving the other 5 blank

salvaniaj_1-1653589835826.png

 

  • Verified answer
    v-yujincui-msft Profile Picture
    on 02 Jun 2022 at 07:03:44
    Re: Skipping Empty Fields in Forms

    Hi @Anonymous ,

     

    As the post provided by @BradWest  says, you could try to use the empty() function in the expression.

    if(empty(outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6']),items('Apply_to_each')?['1st Day Time Contact'],outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6'])

    vyujincuimsft_0-1654153187401.png

    vyujincuimsft_1-1654153215144.png

    vyujincuimsft_2-1654153325993.png

    Result Screenshot:

    vyujincuimsft_3-1654153392676.png

     

     

    Best Regards,
    Charlie Choi

  • Community Power Platform Member Profile Picture
    on 01 Jun 2022 at 16:36:59
    Re: Skipping Empty Fields in Forms

    I tried using that If formula by calling the fields, but it states expression is invalid. Is there something I did wrong in the expression? I tried it 2 different ways

     

    if(outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6'] <> "", outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6'], outputs('Get_items')?['body/value'] )
     
    if(outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6'] <> "", outputs('Get_response_details')?['body/rc434835e962341e086d37fddae50d2e6'], outputs('Get_items')?['1st Day Time Contact'] )
  • beerad Profile Picture
    on 27 May 2022 at 12:22:49
  • Community Power Platform Member Profile Picture
    on 26 May 2022 at 19:45:54
    Re: Skipping Empty Fields in Forms

    Sorry I just realized I was not clear in the original post. The current form is to update an existing row in a SharePoint list.

     

    So I have that, the issue is that lets say for for all 6 contacts on the form (1-3 Day and 1-3 Night), all of them stay the same but for 2nd Day Time Contact.  If the form only contains information to update 2nd Day time, the flow I have (using Update Item) is currently rewriting the other 5 contacts as blank however, I would like for them to stay unchanged 

  • beerad Profile Picture
    on 26 May 2022 at 19:40:25
    Re: Skipping Empty Fields in Forms

    Maybe I am misunderstanding what you are trying to accomplish, but should the flow be:

    1. Form being submitted as the trigger
    2. Get the response ID from the form
    3. Create an Item on the Sharepoint list

    Flow example.png

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,749 Most Valuable Professional

Leaderboard
Loading started