Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Upload document to Sharepoint through Dynamics (with code)

Posted on by 155

Hello,

I want to know if it is possible to upload a PDF document to Sharepoint, but instead of going directly through Sharepoint, I want to upload it from Dynamics on the particular contact (with code).

Thankful for any information here!

  • Linn Zaw Win Profile Picture
    Linn Zaw Win 3,405 on at
    RE: Upload document to Sharepoint through Dynamics (with code)

    I have also written a blog post with similar requirement on how to Upload SharePoint Documents for Dynamics 365/CDS Records Using Flow

    http://linnzawwin.blogspot.com/2020/04/upload-sharepoint-documents-for.html

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Upload document to Sharepoint through Dynamics (with code)

    Yes, there is another way to do it other than using a plugin.

    Upload the document as an attachment to a note.  Then, a FLOW (Power Automate) would trigger on the creation of a note, move the note attachment into SharePoint, and then delete the note.

    If you need metadata around the document, then create a new entity called "Uploaded Document" with the needed MetaData fields in it, and add the Timeline to the Uploaded Document form.  Then, just set the metadata, upload an attachment to a note, and let the flow take care of the rest.

    See powerusers.microsoft.com/.../290923

  • Suggested answer
    RE: Upload document to Sharepoint through Dynamics (with code)

    Hi Kranis,

    You need a plugin. Please refer to this post community.dynamics.com/.../upload-documents-to-sharepoint-in-plugin for more information.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans