# From Power Apps

To do this, follow the steps given below:

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FgnLkaDhIgjYHPT7NEMsI%2Fimage.png?alt=media&#x26;token=f61ad81a-9858-4c8a-a56c-4f928979225a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzqcOGdiIIChzSpkRCUoe%2Fimage.png?alt=media&#x26;token=38af3a9f-e31b-4b35-96d2-61d339c435ed" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FwcVPfRKlqsxBHQ6KQhI0%2Fimage.png?alt=media&#x26;token=68fcc79d-b5c9-4c62-87eb-dc8e21199d50" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fd2n412PO22ItVff1YycD%2Fimage.png?alt=media&#x26;token=43b2f7bc-36a7-4e3b-915f-37ad99e7dc27" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FH5KHnjPUOjDjtMGOa97a%2Fimage.png?alt=media&#x26;token=2216d0dc-07f5-4c14-9468-8183c3642b1d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FGNpIZcO2ZEoE5ZUFIXwA%2Fimage.png?alt=media&#x26;token=d5136af0-1948-4b2f-8045-44a986eb764f" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F3UuH4AvldYbBAdnwIXxe%2Fimage.png?alt=media&#x26;token=7e56a5ed-796d-4864-96bb-68d8ce87f0b9" alt=""><figcaption></figcaption></figure>

* Click on **Next.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FpDalbW1Bzwq8SlXqOqMf%2Fimage.png?alt=media&#x26;token=6306955a-ffa5-4bb0-8216-abc831a1dbac" alt=""><figcaption></figcaption></figure>

* Click on **Done.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FpW3FIZQnGRBplYk1Fcv7%2Fimage.png?alt=media&#x26;token=38f60a23-25b5-4bb8-8b81-ba993bf3da50" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Frep0GyCmStbgn9Y0Na8B%2Fimage.png?alt=media&#x26;token=bc02039f-a24b-41ab-936a-b9f1f17302e2" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzCGMzkZarH81e5SSPx86%2Fimage.png?alt=media&#x26;token=b3b80590-dddd-4843-a0e0-558bfd581350" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FAn8tBRwiWtnxgsEVD8XK%2Fimage.png?alt=media&#x26;token=25e6f787-3d22-4c39-bd20-d5e85f2c7e2c" alt=""><figcaption></figcaption></figure>

* Select **Based on entity**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FlxzXNiPq1f8Y2UEq94Uj%2Fimage.png?alt=media&#x26;token=df9db37e-ce7e-42db-824e-267e8d895224" 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="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FhTcXhJp31s9vIFJknYtr%2Fimage.png?alt=media&#x26;token=851df332-d4bd-44e7-b8f1-47a566f1c87a" alt=""><figcaption></figcaption></figure>

* Click on **Next**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fy3Se6PTf5clcNLQqpgyr%2Fimage.png?alt=media&#x26;token=22464b35-9385-47fa-9e09-e7f3b128cdef" alt=""><figcaption></figcaption></figure>

* Click on **Finish**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FTvZfok4N3ocBcipS8HrE%2Fimage.png?alt=media&#x26;token=01c505c8-9f23-4661-917e-044541fbb0dd" alt=""><figcaption></figcaption></figure>

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

&#x20;
