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?
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'])
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?
User | Count |
---|---|
85 | |
72 | |
44 | |
26 | |
25 |
User | Count |
---|---|
42 | |
25 | |
23 | |
23 | |
17 |