Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

allow CRM portal users to upload documents to SharePoint

(0) ShareShare
ReportReport
Posted on by 5,421

*This post is locked for comments

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: allow CRM portal users to upload documents to SharePoint

    Nice job Suraj. Keep it up :)

  • Suggested answer
    Suraj Kumbhar Profile Picture
    Suraj Kumbhar 130 on at
    RE: allow CRM portal users to upload documents to SharePoint

     Hi,

    Although I did it for Downloading the sharepoint documents from Portal,

    This might help you to build a functionality to upload the documents from Portal.

    This is how it works,

    8750.ssssssssssssssssssssssss.PNG

    CRM Application

     

    • A new custom entity should be created in CRM Application which will hold the metadata of documents uploaded in sharepoint

     

    • As shown in screen shot below, this entity will have 1-M relationship with other entities such as Policy, Vessel etc and hold the metadata such as Document Url, Name of Document with extension etc.

     8750.ssssssssssssssssssssssss.PNG

     

     

     

     

     

     

     

    Logic App

     

    • During the document migration from Meridio to sharepoint we will have a Logic App flow in place which should create a custom entity record for each document in MSCRM Application to hold the metadata of document.

     

    • Once the document migration is completed, every time a new document is added to Sharepoint, the new record of custom entity should be created in MSCRM Application to hold the metadata of document.

     

    • Whenever the document attributes are updated in sharepoint the existing record of custom entity should be updated in MSCRM

     

    CRM Portal

     

    • Our task is to trigger a plugin of MSCRM from Portal which will fetch document from sharepoint and return back to the Portal

     

    • To make this possible first of all, we need a request acceptor, so we will create a separate web page on portal. This page will be responsible for acceptance of different commands/requests from other Portal pages and returning the answers or response received

     

    • This page will be only the mediator between other pages and CRM which will allow to write a server code using Plugins and/or Actions by retrieving a record of custom entity say spl_portalaction from MSCRM

     

    • The Plugin will be triggered on “Retrieve” Message of spl_portalaction entity record

     

    • The response of plugin will contain the document in base64string format, which will be processed by the requesting page to rebuild the document and download it for end user using JavaScript

     

    • The details are available on below link

    https://community.dynamics.com/365/b/udsconsultingblog/archive/2017/04/18/https-uds-systems-blog

     

    • This functionality or process can provide us more flexibility at other places in future for different requirements from the business

     

    Please mark this as answer if find it helpful and able to implement the same just like I did.

    Please let me know in case if you have any doubts.

    Thank you!

    Regards,
    Suraj Kumbhar

    srjkumbhar@gmail.com

     

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: allow CRM portal users to upload documents to SharePoint

    Yes, this is still not supported. Initially I thought it is support but not working due to some bug but then I check the portal documentation and there is nothing mentioned about it.

    I then switched to Azure blob storage and try to configure it following portal documentation but then again stuck. Reached out to MS and they confirm there is a bug in Azure integration as well.

    Check this out-

    community.dynamics.com/.../219651

    community.dynamics.com/.../253195

    Hope this helps

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

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,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans