cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Flow to create OR update Sharepoint List based on Forms answer

Hi everyone,

 

I want to create a flow that takes the answers from a forms survey (two options), and writes them into a SharePoint list. That's the easy part... Now as I am allowing people to answer the survey multiple times, but only need their last answer, I also want to automate the part so that my worklflow searches in my list for the responder's mail adress, and if s/he already gave an answer, just updates that existing entry. 

My list has 3 columns: Creation time of the entry, the responder's mail adress taken from forms, and the option s/he chose.

 

Thank you so much for your help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Flow to create OR update Sharepoint List based on Forms answer

@TamaraKurz :

 

Here is a sample Flow that should help you out.

In my Flow, I use a Get Items action with an OData filter to retrieve an existing entry for the person who submitted the Form.  If I find one, I set the a variable to true.  If the variable is not set to true, I know Ididn't find any records and I create a new one.  

 

Please note that the column where I am checking for the email address is a person or group column - that is why the column name looks funky.  Also note the single quotes around my filter parameter.  Finally, you'll want to reference your column in the OData filter using the column's internal name.  If there are no spaces in the column name, the display name is usually the same as the internal name.

 

MultiResponseForm.jpgMultiResponseForm1.jpgMultiResponseForm2.jpgMultiResponseForm3.jpg

 

 

If this addresses your issue, please mark your post as Solved.

If you like my response, please give it a Thumbs Up.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Flow to create OR update Sharepoint List based on Forms answer

@TamaraKurz :

 

Here is a sample Flow that should help you out.

In my Flow, I use a Get Items action with an OData filter to retrieve an existing entry for the person who submitted the Form.  If I find one, I set the a variable to true.  If the variable is not set to true, I know Ididn't find any records and I create a new one.  

 

Please note that the column where I am checking for the email address is a person or group column - that is why the column name looks funky.  Also note the single quotes around my filter parameter.  Finally, you'll want to reference your column in the OData filter using the column's internal name.  If there are no spaces in the column name, the display name is usually the same as the internal name.

 

MultiResponseForm.jpgMultiResponseForm1.jpgMultiResponseForm2.jpgMultiResponseForm3.jpg

 

 

If this addresses your issue, please mark your post as Solved.

If you like my response, please give it a Thumbs Up.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

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