Announcements
Hey everyone, I’m running into an issue with a Power Automate flow and I’m hoping someone with more experience can help :)
I want my flow to keep the SharePoint list in sync with the folder:
In my head, this structure makes sense but in it doesn’t work as expected. The flow either fails during the lookup step, or it doesn’t correctly detect whether the item already exists, so the update/create logic doesn’t behave properly.
What am I doing wrong, and how can I improve this flow design to reliably:
It would be amazing if someone could help me troubleshoot the approach
UniqueKey is not the best value to compare in Power Automate because it can be inconsistent depending on the action/output. Instead, use a stable value like:
UniqueKey
Store the document’s Identifier or Server Relative URL in the SharePoint list as a unique column, then use that for lookup every time.
I think there’s a small misunderstanding here. A document library is a SharePoint list, but it’s a different list than your custom SharePoint list. Each list generates its own IDs independently, so a file’s ID in a document library won’t correlate to the ID of a list item.
Vish WR's recommendation to store the Identifier or Server Relative URL in the SharePoint is good. You can then use the Get items action with a query filter on this value to see if an item exists in the list with this value already. You'll use a length() expression to check how many items are returned, and if it returns 0, that means an item does not yet exist with the same Identifier.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 377
11manish 279
David_MA 234 Super User 2026 Season 1