Get source and drive id for files in SP with Power Automate


When using SharePoint as a data storage in Power Automate, some actions require the source and drive ID instead of the SharePoint site URL and document library ID. To obtain these IDs, you can use a "dummy" action in Power Automate and extract the IDs from the code. Alternatively, you can use the "Get file properties" action to retrieve the file ID. Another method is to use the Graph API to find the SharePoint site ID, list all libraries (drives), and access the specific file using the path and file name. This article provides step-by-step instructions for both approaches.


Article 2m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time