cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Advocate I
Advocate I

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
New Member

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,643)