# From Power Apps

To do this, follow the steps given below:

* Navigate to **Settings --> Advanced Settings**&#x20;

<figure><img src="/files/xYl3n44IlC6jeZSDdSRm" alt=""><figcaption></figcaption></figure>

* **System --> Document Management.**

<figure><img src="/files/HD4pDoOasgyi9dqEHb8q" alt=""><figcaption></figcaption></figure>

* Go to **‘Configure Server-Based SharePoint Integration’**.

<figure><img src="/files/l4YBZow8EAYHZuab4WbA" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="/files/QdC1wgB6R5lHZSaQqp5S" alt=""><figcaption></figcaption></figure>

* Now, select the location of **SharePoint site** and click on **Next.**

<figure><img src="/files/8CCW5VQkypUT2EB5coL9" alt=""><figcaption></figcaption></figure>

* Now, enter the **URL of the SharePoint site** that you want to use --> Click on **Next.**

<figure><img src="/files/J716DgeljOmzidoxv3HH" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="/files/DIcLXAotlPylYZbS8kl5" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="/files/2jCTpmxE9aokKOhj8xA3" alt=""><figcaption></figcaption></figure>

* Click on **Done.**

<figure><img src="/files/If9MBFJ3MypZ4XOZscAb" alt=""><figcaption></figcaption></figure>

* The server-based integration of **SharePoint site** is now enabled for your Dynamics 365 CRM environment. Now, go back to **Settings** --> **Document Management Settings**.

<figure><img src="/files/ejhqdzbpVmVHKezveYec" alt=""><figcaption></figcaption></figure>

* Select the Entities for which Document Management needs to be enabled --> Enter the **URL of active SharePoint sites** where you want to store documents --> Click on **Next**.

<figure><img src="/files/Z7S3Kn1Wn3hN4bIRho9Y" alt=""><figcaption></figcaption></figure>

* Add your SharePoint site URL and click on Validate URL.

<figure><img src="/files/pLoo4BFA37VSqHW52XhZ" alt=""><figcaption></figcaption></figure>

* Select **Based on entity**.

<figure><img src="/files/yeKy0Aq6ONqOLYSBrtep" alt=""><figcaption></figcaption></figure>

* Check ‘**Based on entity**’ to automatically create document libraries and folders that are based on the Dynamics 365 Account on the SharePoint site. Users will not be prompted to create them. If you don't want folders automatically created, do not select the **‘Based on entity’** check box.

<figure><img src="/files/B67zXSuZH8iSN31V2UJw" alt=""><figcaption></figcaption></figure>

* Click on **Next**.

<figure><img src="/files/fSC0dBxeK5iCtKorx89f" alt=""><figcaption></figcaption></figure>

* Click on **Finish**.

<figure><img src="/files/ZdXEaDgoahDIxJLOgjIn" alt=""><figcaption></figcaption></figure>

Once this is done, you can easily store **Documents/Attachments** related to selected **Entities** in the respective **SharePoint site**.

&#x20;


---

# Agent Instructions: 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/prerequisites/connector-settings/crm-sharepoint-integration/from-power-apps.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.
