Recursive Retrieval of SharePoint Documents in Canvas Apps using the GraphAPI Connector and PowerFx


In this blog post, the author shares their experience and solution for integrating SharePoint documents into a Dynamics 365 implementation using the GraphAPI. They explore different approaches, including using the SharePoint Connector and Power Automate, but ultimately settle on a direct call to the GraphAPI from Power Apps using Office365Groups. They provide code snippets and explanations for retrieving site IDs, drives, and documents from SharePoint, as well as implementing a recursive loop to retrieve documents from subfolders. They also demonstrate how to preview the documents using an IFrame PCF. The author concludes by mentioning future plans to implement a dataset PCF to display the documents in a tree structure.


Article 18m

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