SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I implement parent child relationship inside a document library. The document library will have different documents for countries. The same document library will have documents for states belonging to different countries.

I need to maintain parent child relationship of all these documents and I don't want separate list to be created for this.

Thanks Alam

share|improve this question
up vote 1 down vote accepted

If you aren't going to use folders, then you'll want multiple metadata columns, one for country, one for state. Then you can use document library views to group by country then by state to get a folder like view of the relational data.

share|improve this answer

Assuming I understand correctly what you need, it's not exactly parent-child relationship. It seems you need something like hierarchical categories.

Most obvious: use folders. Create hierarchical folder structure for countries and states, and then place your documents inside the folders, and you're done.

Another option could be, for example, to create a list for countries, and then add lookup column to your document library, and maintain it. If you have countries and then states, you can use Infopath and create cascading dropdowns, as it is described in the following article:

share|improve this answer
We don't want folders fyi. And the problem is we don't want to manually add documents. The process will be automated one i.e. Documents will have add ins and on click of these documents will be placed inside the document library. – alam235 May 11 '12 at 8:56
In this case, consider Drop Off Library feature. Please refer this article for details:… – Andrey Markeev May 11 '12 at 10:59
And anyway, please reflect your question to include the requirements mentioned above, because obviously the question was initially inaccurate and sadly I spent my time for nothing, writing all these things down for you. – Andrey Markeev May 11 '12 at 11:03
I am sorry Andre for this. – alam235 May 12 '12 at 5:51

Depending on the version of SharePoint Online you're using you might have Managed Metadata. If you have then a TermSet with Continent => Countries => States => Cities => ... might be exactly what you need.

Hint to enable Manage Metadata if available but not enabled: Enabling Managed Metadata in Office365 (includes download)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.