Thank your for choosing Power Platform Community.
To move PDF files from a OneDrive folder into SharePoint Document Sets based on filename matching with the “DocNo” metadata property.
Core Logic:
-Trigger: Use a scheduled or manual Power Automate flow.
-List PDFs: Retrieve all .pdf files from OneDrive.
-Extract Filename: Remove .pdf extension to get the base name.
-Get Document Sets: Use SharePoint’s “Get files (properties only)” to fetch all Document Sets and their metadata.
-Match Logic: Compare each filename with the “DocNo” field.
-Copy File: If matched, use “Create file” to move the PDF into the correct Document Set folder.
-Fallback: If no match, log or skip the file.
📚 Microsoft Learn & Community Resources
Create Power Automate Flow to copy PDF files from OneDrive to SharePoint Document Sets This Microsoft Q&A thread outlines the exact steps and expressions used to implement the logic above.
🏷️ Please tag me @Robu1 if you still have any queries related to the solution or issue persists.
✅ Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
❤️ Please consider giving it a Like, If the solution was useful in other ways.
Happy to help
Robu1
SuperUser|Moderator
Season 2:2025