This repository contains a Dataverse solution with two Power Automate flows that enable end-to-end document signing for Dynamics 365 Finance & Operations (D365FO) documents using:
- Docentric for metadata-driven printing to SharePoint
- Power Automate for orchestration
- Docusign for electronic signatures
The solution is designed to work with any document printed via Docentric.
No custom code is required on the F&O side.
Read more about this solution in these two articles: Solution showcase and Setup guide.
At a high level, the solution implements this flow:
- A document (e.g., PO confirmation) is printed from D365FO using Docentric.
- Docentric saves the PDF to SharePoint with structured metadata (signer name, email, etc.).
- A Power Automate flow detects the new file and sends it to Docusign for signature.
- Once signed, the completed document (including the Certificate of Completion) is written back to SharePoint.
- The updated document is visible in D365FO as an Attachment (DocuRef) on the originating record.
The solution contains two Power Automate cloud flows and supporting components.
Purpose
Starts the signing process when a new document is created in SharePoint.
Trigger
- SharePoint: When a file is created (properties only)
Key actions
- Get file content from SharePoint
- Convert file content to Base64
- Create a DocuSign envelope
- Add the document to the envelope
- Add recipient (signer) using SharePoint metadata
- Send the envelope
Notes
- Uses SharePoint metadata fields (e.g.,
SignerName,SignerEmail) - Stores the filename as a DocuSign Custom Field so the second flow can identify the file to update
Purpose
Handles the result of the signing process and updates the document in SharePoint.
Trigger
- DocuSign: When an envelope status changes (Connect) (V3)
(listening forenvelope-completed)
Key actions
- Retrieve signed document from DocuSign
- Retrieve Certificate of Completion (COC)
- Parse Custom Fields to identify the original file
- Update the corresponding file in SharePoint with the signed PDF
- Open Power Apps (https://make.powerapps.com).
- Select the target environment.
- Go to Solutions in the left navigation.
- Click Import solution.
- Click Browse and select the solution
.zipfile. - Click Next, then Next again.
- Configure connection references:
- SharePoint connection
- Docusign (Demo) connection
- Set the environment variable value for the SharePoint Site URL when prompted.
- Click Import.
Once the import completes, both flows will be available in the environment.
- The flows are enabled
- Connection references are valid
- Environment variables point to the correct SharePoint site and folder
- Docentric is configured to:
- Print documents to SharePoint
- Save them as Attachments
- Populate signer metadata fields
This solution is provided as a reference implementation. You are responsible for:
- Validating compliance requirements
- Configuring security and access rights
- Testing in non-production environments before rollout
- Docentric documentation: https://ax.docentric.com
- Power Automate: https://learn.microsoft.com/power-automate
- DocuSign connectors: https://learn.microsoft.com/connectors/docusign
MIT License