• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/DocumentsCorePack(DCP)/How to: Document Approvals via Power Automate

How to: Document Approvals via Power Automate

3469 views 0 Updated on January 31, 2025

Approvals are actions that can be used within Flows to ensure that subsequent steps are confirmed before continuing on.  In this article, we’ll take a look at how to use such approvals in combination documents to support approval of documents that require sign-off.

Note: This article assumes a general understanding of working with DocumentsCorePack within Flows.  If you are not familiar with this, please review our article on the topic here. 

Our use case 

We want to automatically send a quote to a customer once a quote is activated. But if the total amount of the quote exceeds fifteen thousand dollars, we want to get the quote approved by a manager first before it is sent off.  To do this, we’ll need to construct a Flow with an approval. 

Step 1: Setting up the Flow 

After we create our Flow, we’ll begin by adding a few actions.  The Flow is already set up to trigger when a quote is activated.  We’ll add actions after that which creates an email record using the Dataverse – “Add a row” action. After that, we utilize the “Create document (sync) V3” action of the DocumentsCorePack Connector to generate both: the attachment for the email in PDF format, and the content for the email in HTML. 
 

Important: The “Create document (sync) V3” action provides the generated document as an output parameter. 
 

flow actions
Figure 1: Flow that generates a document for a quote once it is activated

After those steps, we’ll add a condition. This condition checks if the total amount of the quote is greater than 15,000. If it is, then we’ll continue to set-up an approval action before the quote gets sent. Otherwise, we’ll send an email without needing approval. 

condition field for total amount
Figure 2: Our condition field for the total amount

Step 2: Setting up the approval 

In thi “If yes” branch, add a new action and search for the “Approvals” connector and select “Start and wait for an approval.” 

creating the approval action
Figure 3: Creating the approval action

When added, select Approve/Reject – Everyone must approve for the approval type.  Then, set your title and add the email address you would like this approval to be assigned to under the Assigned to field. Finally, we are ready to add the document to the approval. To do so, we need to open the advanced options and add the attachment as follows:  

  • Attachments Name: set to the File name – the output of the “Create document” action 
  • Attachments Content: set to the Document content – the output parameter of the “Create document” action 
approval action set up
Figure 4: Setting up the approval action

Then, we can add a condition under the approval action to check the outcome.  If approved, the flow proceeds to the rest of the action.  In this case, the email will then be sent to the desired recipient.  If it is not approved, then the flow will stop. 

checking the outcome
Figure 5: Checking the approval’s outcome

Step 3: Testing our Flow 

We can test this flow by going into any drafted quote and activating it. 

activating a quote
Figure 6: Activating a quote

Once activated, the flow will start.  If done correctly, then the email address assigned to the flow should receive an email from Microsoft Power Automate stating that their approval is needed. The generated document will also be attached to the email for viewing. 

email in inbox
Figure 7a: The approval email in our inbox
full email approval
Figure 7b: The full email, showing the approval and its attachment

If the user approves, then the email will be sent.  In our case, this email will be sent to the potential customer under our quote record. 

email sent to the customer
Figure 8: The final email sent to the customer

That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com 

Was this helpful?

Yes  1 No
Related Articles
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Configure DocumentsCorePack within custom pages
  • Ensuring correct time zone display for DateTime fields
  • Document Generation Failure from Missing Privileges
Latest Articles
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Recap: ColorCloud 2025
  • Configure DocumentsCorePack within custom pages
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How to find your environment’s unique name in Microsoft Dynamics 365
  • How licenses are counted
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How licenses are counted
  • How to insert Condition Fields in DocumentsCorePack Templates designer
Categories
  • *News and General Infos* 62
  • Webinars 45
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 251
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 72
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2022 www.mscrm-addons.com. All Rights Reserved.