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

Update a Sharepoint list Item using Microsoft forms (ID in source data)

Hello,

 

This is a great forum which has helped me greatly with using Flows, but I'm really struggling with something that seems so basic!

 

I have a Microsoft form which when updated it should update a list item, but I'm struggling with identifying the list to update.

 

Steps:

I have a list item with an ID which is automatically generated by the list, e.g 17

On my form there is a question where you enter an ID, this ID is the sharepoint list ID

When the form is submitted if should add the data to the specific list item

 

Flow1.pngflow2.png

 

My logic with the above is:

Select the forms information

Select the items informaiton
where the form ID = the ID on the form take the output and find the specific item

Update that specific item

 

I hope that makes sense. I don't feel like the filter array works as a where? I looked at the information which comes out during test and it is at below

Body
     []

 

Would appreciate any help, thanks.

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Update a Sharepoint list Item using Microsoft forms (ID in source data)

Hi @bread01,

 

According to your description, I made a flow for testing likes below.

 

It seems that there is no type of Number in Microsoft Forms, so I create a field for Id in type of Text. In the flow, I will use a function to convert it to integer.

 

The flow is triggered by When a new response is submitted, then get response details, getting items from the SharePoint list.

 

Under the Get items action, add a Compose action to convert Id from string to integer. The code is:

int(body('Get_response_details')?['rd046fc44c5744c5a8f4f478548ae9c5f'])

 

Within the Apply to each, add a Condition to check if the SharePoint list ID equals to the Id from the forms. If yes, update the corresponding item with specified information.

 

Please check the following screenshot for a reference.

1.PNG2.PNG

 

More details about the int function, please check the doc on WDL:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#i...

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Administrator
Administrator

Re: Update a Sharepoint list Item using Microsoft forms (ID in source data)

Hello,  @bread01!

Have you had an opportunity to apply @v-yamao-msft's recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify it!


Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
Helper II
Helper II

Re: Update a Sharepoint list Item using Microsoft forms (ID in source data)

I'm trying to do exactly this however i tried to follow your screenshots but mine are different. I do not have an option for ID and no dynamic to enter "List of Responses" in select an output in previous steps

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

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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 (6,964)