Sample Code to create and associate Folder / SharePoint Document Location (Dataverse /Dynamics 365 / SharePoint Online)


The article provides sample code for creating a folder in SharePoint and associating it with a record in Dynamics 365. The code uses the SharePoint Document Location record and follows the naming pattern used by CRM. It checks if a SharePoint Document Location already exists for the record and creates the folder if it doesn't. The code also uses regular expressions to replace special characters in the folder name and checks if the folder already exists in SharePoint before creating it. The article includes the sample code and screenshots of the result.


Article 6m

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