# Connecting SharePoint and emSigner & Configuring the Workflow

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

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FWEpNNS7eMkEHNWEKQUqb%2Fimage.png?alt=media&#x26;token=7d1e84cf-3d8a-4bbe-97b6-e25fa1e42443" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FtARAaSEwANHujK6Q5Uq6%2Fimage.png?alt=media&#x26;token=c34ad034-50f6-443a-b84b-8f82fcc5c9bb" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2F1nSC96hbXzBU5W3u3eWI%2Fimage.png?alt=media&#x26;token=1d38d625-e0dd-4a47-9433-ea94a95eb1d5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FrHirwhMRZCeWjnktvqvs%2Fimage.png?alt=media&#x26;token=37ed03a0-3fb8-47d7-9829-b3b29a1d19d2" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FOIxLlnB66XQYc0TKVu4Y%2Fimage.png?alt=media&#x26;token=8b06d0d2-87f9-4a51-a6e1-74ff37b373bd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2F1fpfgJGthAvzZjvb3u3h%2Fimage.png?alt=media&#x26;token=3176f07e-b1d9-40b7-a114-da61105b0a76" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FjxpE4lxaEG1Q8tGpdeoK%2Fimage.png?alt=media&#x26;token=762328c6-0e2f-4d0d-9e3a-0c226f5d52de" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FDE9wa9flLEoFbuBKjwUo%2Fimage.png?alt=media&#x26;token=7ec3af2e-15b2-4057-9e98-91bf4e60ea2f" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FINCxgMa9Xd0gIIwQEMFj%2Fimage.png?alt=media&#x26;token=b1ea7083-3e24-4d3b-af3d-55a2403cc168" 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="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2Fc9S4FkSZPECR4CmmZ2TL%2Fimage.png?alt=media&#x26;token=ca3b5a10-63f9-4952-8510-eef1090bbe74" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FvDA80dcgTqpGaMibL8wg%2Fimage.png?alt=media&#x26;token=a1b3ec2e-4ae5-4310-8f46-573929ac8daa" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2Fi0DUw0az4prDmJK6zYnM%2Fimage.png?alt=media&#x26;token=d11ff2ff-9f99-4987-804d-a9feaef3d011" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1693119202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXNKpOPGIHdEkmaF2RQso%2Fuploads%2FCuU8RhdXMTbyEWDnBTGX%2Fimage.png?alt=media&#x26;token=e9dd5168-05f0-49b1-ae7c-e961de539f5f" alt=""><figcaption></figcaption></figure>
