> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/attach2dynamics/configuration/entity-configuration/configuring-hierarchy-structure.md).

# Configuring Hierarchy Structure

Attachments/Documents of Dynamics 365 CRM records can be stored in SharePoint sites on the basis of hierarchy.

**To achieve this, follow the steps given below:**

* Go to Advanced Settings **-->** Settings **-->** Document Management Settings.

<figure><img src="/files/f7TOAlqDDbMoMvRG44TV" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>

* Select Entities **-->** Enter the URL of the respective SharePoint site.

<figure><img src="/files/BHJ5vCK7vDM6Ta2coPf3" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>

* Enable the Checkbox ‘Based on Entity’ **-->** Select either of the entities, Account or Contact **-->** Complete the process by clicking on ‘Next’ and ‘Finish’.

<figure><img src="/files/ye8RmXghfDNMC75DWf0B" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>

* Click on **Finish.**

<figure><img src="/files/BmNaIRAYE4dF6eBC8bla" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>

* When hierarchy is enabled, the path structure will look as shown below.
* Next, go to **Quote --> Select a Quote --> Click on Attach2Dynamics button --> Drag and Drop** the required file.

<figure><img src="/files/me2HnuQenW4EQtmQ8ErU" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>

* Next, go to the SharePoint site. Here, the respective file will be stored in the following manner: **Account --> Account Name\_guid --> Quote --> Quote Name\_guid.**

<figure><img src="/files/bzFGsogeooeJKT36onqq" alt="Configuring Hierarchy Structure"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inogic.com/attach2dynamics/configuration/entity-configuration/configuring-hierarchy-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
