cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bread01
Level: Power Up

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.

2 REPLIES 2
Community Support Team
Community Support Team

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!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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

Top Kudoed Authors
Users Online
Currently online: 154 members 5,383 guests
Please welcome our newest community members: