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

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
Super User
Super User

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
1 REPLY 1
Super User
Super User

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 226 members 4,829 guests
Please welcome our newest community members: