Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

Posted on by Microsoft Employee

Hi Expert,

 I want to upload Images or Documents from CRM (online) to Sharepoint online and I want to give the path of image/Document in CRM to reduce space of CRM.So is there any way to upload documents from CRM to Sharepoint. please comment.

*This post is locked for comments

  • Santosh Kulkarni Profile Picture
    Santosh Kulkarni 235 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi,

    Well my user want to move old documents from physical folder to SharePoint and same should be visible in Dynamic CRM for account entity.

    Regards,

    Santosh

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Santosh,

    If you would like to do this using code, not Flow, please follow the example in the link below that shows how you can upload document to SP and set the document location. You can use this as a start and expand this to work with files from CRM notes attachment.

    informaquest.com/.../uploading-files-directly-to-sharepoint-and-link-in-crm

  • Santosh Kulkarni Profile Picture
    Santosh Kulkarni 235 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi,

    did anyone find the solution to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk programatically....

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Current flow of my problem is : External source --> CRM(Images/Documents).

    assumption flow of images/Documents: External Source---> CRM--> Sharepoint---> Path of the file in CRM.(want to use Path of the file)

    Because the data consumption is very high with images and documents in CRM. So I want to move these images and documents to sharepoint and I want to use path in the CRM.

    So is there any chances to do like this programatically. I am doing POC. please help me out in this.

    Thanks,

    Rajesh

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Rajesh,

    Since you have both CRM and Sharepoint online environment, i would recommend you use the Server Side Integration.

    The following is a summary of what you have to do to setup the integration and i will also provide links

    01. You have to first Enable Server Side Integration in the Settings - Document Management page

    ScreenClip-_5B00_79_5D00_.png

    02. You then have to configure document management settings - In this step you will configure which entities configure which entities you want to enable document management for and also how you want to organise the documents in SharePoint. You can create one document library per Entity or maintain Account/Contact based hirarchy for storing documents. 

    ScreenClip-_5B00_75_5D00_.png

    03. You also want to make sure you have enable the entity for document management to get the Documents tab for each entity you configured in the previous step. Some are enabled out of box but you have to make sure it is enabled.

    ScreenClip-_5B00_76_5D00_.png

    04. Check the documents tab to see if the configuration works.

    ScreenClip-_5B00_79_5D00_.png

    Links that could help you with understanding more about the integration

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/admin/configure-server-based-authentication-sharepoint-online

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/admin/set-up-dynamics-365-online-to-use-sharepoint-online

    Hope this helps

    Thanks

  • Srikanta Mahapatro Profile Picture
    Srikanta Mahapatro 190 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Rajesh,

    Updated the link, please check again.

    Hope this helps!!!

    Thanks,

    Srikanta

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Srikanta,

    Shared link is not opening. can you please share any other.

    Thanks,

    Rajesh

  • Suggested answer
    Srikanta Mahapatro Profile Picture
    Srikanta Mahapatro 190 on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Rajesh,

    This can be done with OOB, please look the link   https://blogs.msdn.microsoft.com/.../crm-online-document-management-with-sharepoint-online-office-365/

    https://community.dynamics.com/.../setting-up-server-based-sharepoint-integration-for-dynamics-365-online

    and  https://community.dynamics.com/.../how-to-setup-document-management-with-sharepoint-online-and-microsoft-crm-online-2013

    Thanks,
    Srikanta

    If found useful, please mark the answer as verified

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to upload documents from Dynamics CRM online to Sharepoint Online through CRM Sdk

    Hi Rajesh,

    You need to integrate CRM with Sharepoint. During the integration you need to select the entities , so in each individual entity a folder is created in sharepoint with the name and path etc.

    Once its done, It'll provide all paths for each entity. Ex: Account in crm is selected, after integration the path will loook like "sitename.sharepoint.com/account"

    Now in crm for as soon as you attach documennts, the documents will be pushed to Sharepoint in the entity folder with guid id's.

    Thank you

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans