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.
Highlighted
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
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager
Power Platform Communities
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,629)