Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How can I upload documents to a sharepoint document library for a CRM entity ?

(0) ShareShare
ReportReport
Posted on by 115

We have configured Dynamics 365 to use SharePoint for document management.

We have created custom entities and migrated data (cases) into those entities from another system. Each custom entity record has a unique reference.

We now have documents that we would also like to migrate.

There is already a sharepoint document library for each custom entity

If you manually upload a document for a custom entity record (i.e. via dynamics) , dynamics creates a sharepoint folder for that record (case) and stores the document in the folder.

We want to run an upload process to bulk migrate a lot of documents.

We have

a) a folder on our network with a subfolder for each case - the sub-foldername is the unique case reference - which is also the value of one of the fields in the dynamics entity. Each subfolder has all the documents for that case.

b) an "index file" - this is a .csv file - with the following columns:  the document filepath (to the network share), document title and case reference (which matches a field in the dynamics entity), plus the entityname

What dynamics utilities/methods are available to bulk upload the documents ?

  • Suggested answer
    Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: How can I upload documents to a sharepoint document library for a CRM entity ?

    You can associate a document location record with an entity record. When you do this, all the documents for the entity record are stored at this location on the SharePoint server. You can associate a SharePoint document location record with an entity using the SharePointDocumentLocation.RegardingObjectId property.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/integration-dev/actions-on-sharepoint-location-records#associate-a-document-location-record-with-an-entity-record

    Best Regards

    PG

  • gregbooth2 Profile Picture
    gregbooth2 115 on at
    RE: How can I upload documents to a sharepoint document library for a CRM entity ?

    Thanks - I know that you can use the SharePoint API to upload documents to sharepoint, but this wont give any integration with dynamics (i.e. link each document to the dynamics case) - which is what I am looking for here.

  • Suggested answer
    Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: How can I upload documents to a sharepoint document library for a CRM entity ?

    Hello,

    I think you can use SharePoint API to bulk upload documents. You can also check Kingswaysoft Integration for SharePoint.

    https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/bulk-upload-documents-sample-app-for-sharepoint

    Best Regards

    PG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans