cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
digitech
Level: Powered On

Flow Condition If Field is Blank

Hi, 

 

I am trying to create a flow that will update a sharepoint list based on Microsoft Form submission.

 

I need a means of updating the sharepoint list without overwriting other sharepoint list fields if the corresponding form fields are empty.

 

This form might be completed several times, so for example:

 

Sharepoint list columns

Name: 

Team:

Colour:

 

Form fields

Name: 

Team:

Colour:

 

Sharon might fill in the form with:

Name: Sharon

Team: Central

Colour: Red

 

So the sharepoint list item is created with:

Name: Sharon

Team: Central

Colour: Red

 

Sharon might fill in the form a second time:

 

Name: Sharon

Team: East

Colour:

 

And the flow triggers the sharepoint list to update to:

Name: Sharon

Team: Central

Colour: 

 

When what I want is for it to retain the original colour of Red from the first submission.

 

Is there a way to "skip" if empty or If empty return null?

2 REPLIES 2
digitech
Level: Powered On

Re: Flow Condition If Field is Blank

The closest I can get for this to work is by checking to see if the form field is empty or not using an expression.

 

If it is empty then populate it with the existing data. If it isn't empty then populate with the new data.

 

if(equals(empty(body('Get_response_details')?['ID OF FIELD FROM FORM']), true), 
body('Get_item')?['ID OF FIELD FROM SHAREPOINT LIST'],
body('Get_response_details')?['ID OF FIELD FROM FORM'])

 

Highlighted
MarthaM
Level: Power Up

Re: Flow Condition If Field is Blank

Hi, I'm having a similar issue to this. 

I use flow to update my main sharepoint list with bulk data updates provided in spreadsheets. I create a sp list per spreadsheet and use a flow to transfer the data across. If I have say 200 rows to update of only 3 columns, and each row has a value in each column, then it's easy, and all is well. However, if I have say 10 columns to update and 100 rows have all 10 columns but 100 rows don't have data in one or more column, then that's where it gets tricky, as if there is already data in my main sp list, but I upload a blank, then the value in the main list is over-written to blank. 

Is there a way to say Update but skip if blank? 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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