web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Upload file to integrated SharePoint

(0) ShareShare
ReportReport
Posted on by

Hi, I'm using a .net web application to create records of a custom entity. I have SharePoint integration enabled for that entity.

I need to upload files when creating this record and I need these files to be upload to SharePoint.

Do I need to create the SharePoint folder (where all documents uploaded within D365 are) myself within the web app? 

Is there the only way to use the Microsoft.SharePoint.Client.dll or there is something out of the box as a result of having SharePoint integrated?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Yes - you will need to manually create the folder in sharepoint and then upload the file.

    Although you can't use the Client.dll in your plugin you could create an Azure functon that does this for you and then invoke it from Dynamics.

    This would be simular to the technique shown at www.oak3.org/.../creating-sharepoint-site-dynamics-crm-azure-functions

    Hope this helps

  • Jorge S Profile Picture
    on at

    Thanks for your reply Scott, I found this that confirms what you said.

    Performing these operations on SharePoint location records only manipulates the data in Microsoft Dynamics CRM. It does not create, update, or delete the locations on the SharePoint server

    I've checked the SDK documentation and looks very limited, we can't event get the SharePoint siteURL that is integrated with D365.

  • ayush kar Profile Picture
    2,654 on at

    Hi Scott,

    I have a similar requirement to upload note attachment in sharepoint from crm online plugin. I have configured sharepoint in crm for contact entity.

    And in sharepoint I can see a folder created Contact automatically. Do I need to still create a folder programatically in plugin? If so why?

    Thanks in Advance

  • ayush kar Profile Picture
    2,654 on at

    Hi Scott,

    I have a similar requirement to upload note attachment in sharepoint from crm online plugin. I have configured sharepoint in crm for contact entity.

    And in sharepoint I can see a folder created Contact automatically. Do I need to still create a folder programatically in plugin? If so why?

    Thanks in Advance

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans