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)

How to Configure Document Locations for Specific folders in library?

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • ThomasN Profile Picture
    3,190 on at

    Hi Shak, thanks for reaching out.

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

    Thanks.

  • ScottDurow Profile Picture
    21 on at

    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,

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    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.

  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    "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
    on at

    "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!

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