Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to Configure Document Locations for Specific folders in library?

Posted on by Microsoft Employee

Hi everyone!

I have this scenario. My Case have a field named Case Type which can be in 3 categories. 

In my SharePoint i have a library with 3 folders inside one for each type of case. I want to be able based on that field to create the Case at the corresponding folder.

I've tried to do it manually by adding 3 Document Locations , and then manually for each case to select the location but when i try to create a new Document Location and choose the library i want i always get this error

Something went wrong while interacting with SharePoint

Can anyone help me?

 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Configure Document Locations for Specific folders in library?

    "Usually that error is because the document location doesn't point to a sharepoint site that is setup for server to server integration.

    I did a blog series about integration with SharePoint whilst creating custom SharePoint Document Locations - community.dynamics.com/.../sharepoint-integration-reloaded-part-1

    Part 3 has got some sample code for creating document locations. You might want to take a look and see if this sheds any light on your issue.

    Thanks,"

    I will have a look at it. Thanks!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Configure Document Locations for Specific folders in library?

    "Hi shak,

    I would recommend a different approach.  It is best practice to use metadata rather than using Folders in SharePoint.  Metadata can be search and filtered.

    Create a choice site column in SharePoint to store the categories.  Add the site column to the Document Library.  When you add documents, set the Category choice field as well.  If you are using OOTB integration, you can also view this field from within CRM.  All you have to do is add a field to the "SharePoint Document" entity which has the same name as the Choice site column.

    Cheers,

    Nadeeja"

    Problem is that we have more than 20000 documents . So we have to split the libraries into separate libraries below the 5000 limit to be able to be synced with OneDrive. If we put all files in one Document Library we will have issues with syncing

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Configure Document Locations for Specific folders in library?

    I'm not using any code , just the out of the box integration

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: How to Configure Document Locations for Specific folders in library?

    Hi shak,

    I would recommend a different approach.  It is best practice to use metadata rather than using Folders in SharePoint.  Metadata can be search and filtered.

    Create a choice site column in SharePoint to store the categories.  Add the site column to the Document Library.  When you add documents, set the Category choice field as well.  If you are using OOTB integration, you can also view this field from within CRM.  All you have to do is add a field to the "SharePoint Document" entity which has the same name as the Choice site column.

  • ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: How to Configure Document Locations for Specific folders in library?

    Usually that error is because the document location doesn't point to a sharepoint site that is setup for server to server integration.

    I did a blog series about integration with SharePoint whilst creating custom SharePoint Document Locations - community.dynamics.com/.../sharepoint-integration-reloaded-part-1

    Part 3 has got some sample code for creating document locations. You might want to take a look and see if this sheds any light on your issue.

    Thanks,

  • ThomasN Profile Picture
    ThomasN 3,190 on at
    RE: How to Configure Document Locations for Specific folders in library?

    Hi Shak, thanks for reaching out.

    Can you share the code you are using to create document location or select document location?

    Thanks.

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,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans