Sample code to check if a Folder exists else create it (SharePoint Online / PnP Framework / C#)


This article provides sample code for checking if a specific folder exists in SharePoint Online and creating it if it doesn't. The code uses the PnP Framework Library and Azure AD App only permissions. The article includes the code snippet and explains how to use it. It also shows the location where the folder will be checked and created. The article concludes with a link for more details.


Article 7m

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