# Connecting SharePoint and emSigner & Configuring the Workflow

From the app: **Settings → Marketplace → Sharepoints**.

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

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

#### **1.Connect SharePoint**

Click **Connect SharePoint** → enter a connection name (e.g. `Admin – ContosoSite`)->Click on **Connect** to follow Microsoft sign-in and grant Admin consent when prompted. Wait for the status to show **Connected**.

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

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

#### **2.Connect emSigner**

Choose **emSigner**, add appropriate connection name, select instance (demo, qa, production), paste **AppName** and **SecretKey**, then click on **Connect**.<br>

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

#### **3.Setup Workflow**

<figure><img src="/files/6H3MhG2DJRGbEnnnIYaT" alt=""><figcaption></figcaption></figure>

**3.1 Set Source (Monitor Folder)- New file from Sharepoint -> emSigner**

**Configure New File Created In Specific Location**: Site, Document Library (Documents), and Folder to watch for new files.

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

**Configure Get File:** SiteID (the source file location), Document Library ID (Documents), File Item ID (Id), Include File Content (True).

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

**Select Template & apply signatory participants:**

Set this section as described below:

1. **Template Id**- available fixed form templates created in emSigner will be available here. user can choose appropriate template to be added in automation workflow.
2. **Initiator email**- email id associate with initiator emSigner.
3. **Request From- p**ass an appropriate value that needs to be added in signed file return folder configuration.
4. **Signature 1 Signatory email-** email id of signatory. in case of multiple signatories, all the details shall be added.
5. **Signature 1 Name-** Name of signatory. in case of multiple signatories, all the details shall be added.

<figure><img src="/files/9cHF0xohBxIzm0ogNnlB" alt=""><figcaption></figcaption></figure>

Users can also configure advanced options such as enabling selfie capture or disabling participant notifications. Once all required parameters are provided, save the source file configuration to complete this step.

**3.2 Configure Destination (Return Signed File)- emSigner to Sharepoint after signed**

**Document Completed** (monitor using the `Request From` value)

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

&#x20;**Find Document by Workflow ID**

<figure><img src="/files/36HMQnN8gVeE7yazkGfs" alt=""><figcaption></figcaption></figure>

**Upload File** to SharePoint (map Base64 signed content → New File Content; choose destination Site/Folder).<br>

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

**3.3 Enable Workflow**\
Save and enable the workflow.<br>

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


---

# 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://support.emsigner.com/apps-and-integrations/platform-integrations/microsoft-sharepoint/connecting-sharepoint-and-emsigner-and-configuring-the-workflow.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.
