Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 CRM and SharePoint - Custom integration

(0) ShareShare
ReportReport
Posted on by 65

We are implementing Dynamics CRM 365 which has integration with SharePoint.

Documents can be uploaded from external portal which is integrated with Dynamics CRM 365  and CRM users from CRM.

While uploading the documents user should be able to select the Type of the Document from a list and then upload the same. For Example : Identity Document (Type) ---- DriversLicence.pdf 

Can any one help me how to achieve this? Is this possible with the out of box integration?  

Or, do we need to do customization from both SharePoint and CRM? like adding metadata in sharepoint etc?

*This post is locked for comments

  • vutukuricm Profile Picture
    vutukuricm 65 on at
    RE: Dynamics 365 CRM and SharePoint - Custom integration

    Thanks for you reply Vignesh,

    My requirement is not to place the documents grid on to the main form.

    I have created a new metadata in SharePoint called "Visible To" with option "All" , "Contacts" , "Vendors" etc.

    CRM user while uploading the document should be able to select this option.

    Is this possible with OOB share point integration or any solution for this?

  • Suggested answer
    RE: Dynamics 365 CRM and SharePoint - Custom integration

    Hi,

    I hope CRM and Sharepoint integration is already done. If yes, you can upload your document in CRM itself.

    Enable Document Management in the entity.

    Show SharePoint Documents on the Main Form

    Here’s an easy way to embed the SharePoint document window you’d normally get by navigating to “Documents” under related records, which includes all the native functionality like search, upload, 
    This might fall under the area of semi/not supported but if it happens to break one day you won’t have invested too much.

    You’ll need to create an iFrame for the SharePoint content, probably within it’s own tab. Remember what you name the iFrame as you’ll need to modify with that value. 

    When configuring the iFrame...

    On the General tab:
    • Restrict cross-frame scripting… to Unchecked
    On the Formatting tab:
    • Number of Rows to 34
    • Scrolling to Never
    • Display Border to Unchecked
    You could set the rows to a lower number, you’d just end up with a scrollbar despite the never scroll setting. 

    Take this code and update the iFrame name and add it to the form. Call SetDocumentFrame during the form’s OnLoad event.

    function SetDocumentFrame() {
    //Use: Make sure Document Management is enabled for the entity (helps to turn on automatic folder creation)
    // Add a web resource with this code to the form
    // Execute this function during the form's OnLoad event

    var url = Xrm.Page.context.getClientUrl() +
    "/userdefined/areas.aspx?formid=ab44efca-df12-432e-a74a-83de61c3f3e9&inlineEdit=1&navItemName=Documents&oId=%7b" +
    Xrm.Page.data.entity.getId().replace("{", "").replace("}", "") + "%7d&oType=" +
    Xrm.Page.context.getQueryStringParameters().etc +
    "&pagemode=iframe&rof=true&security=852023&tabSet=areaSPDocuments&theme=Outlook15White";

    Xrm.Page.getControl("IFRAME_???").setSrc(url); //Replace IFRAME_??? with actual IFRAME name
    }


    If you’re doing this, you might also consider turning on the option to auto-create SharePoint folders. Otherwise people are going to be getting prompted. You can find this under:

    Settings –> Document Management –> Document Management Settings and then it’s on the 2nd page. 
     

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans