• 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 generate and send a document using the DocumentsCorePack connector for MS Flow

How to generate and send a document using the DocumentsCorePack connector for MS Flow

1759 views 0 Updated on November 7, 2022

This article outlines step-by-step how to generate and send a document using the DocumentsCorePack (DCP) connector for Microsoft Flow.

In this article, we are creating an on-demand flow that executes a DCP template and sends the result as an email in Dynamics 365.

 

Steps:

1. Start by creating a new flow and selecting a trigger. In this example, we are building an instant cloud flow and selecting When a row is selected as the trigger.


Figure 1: Build an instant cloud flow

 

2. Select Environment and Table Name. For the Table Name, select the entity(table) from which you want to start. In this example, we start from the entity(table): Accounts.


Figure 2: Select the Environment and Table name

 

3. Click on + New step and search for the Add a new row action of the Microsoft Dataverse connector.
Select Email Messages as Table name and click on + New step again.


Figure 3: Add a new row

 

4. Search for the DocumentsCorePack connector and select Create Document Job (sync) from the list of actions.


Figure 4: Select Action “Create Document Job (sync)

 

5. After you select Create Document Job (sync), the corresponding window will pop up (Figure 5). Please fill out the following fields:

❶TemplateId: Select the DCP template that you want to use in the document job.

❷EntityId: Select a Dynamics 365 source record id.

❸FileType: Select HTML as the FileType.

Please Note: Make sure that the base entity of your template matches with the entity of your selected trigger.


Figure 5: Create Document Job (sync)

 

6. Select + Next Step and look for the DocumentsCorePack connector. Then select the Attach DocumentJob to Email action. In order to use the result as an email, provide the following configuration:

❶ DocumentJobId: Please provide the ID of the previously created DocumentJob.
❷ Email Id: Enter the email where the document should be attached.


Figure 6: Attach DocumentJob to email

 

7. The last step will be the Send email action of the DocumentsCorePack connector.


Figure 7: Send Email

 

8. Provide the email record, a sender, and a recipient before you save your flow.


Figure 8: Send Email

 

Execute your Flow

You can directly start your flow within Dynamics 365 by pressing the Run flow button.


Figure 9: Run flow

Back to “The DocumentsCorePack connector for PowerApps and PowerAutomate (Microsoft Flow)“.

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

Was this helpful?

Yes  No
Related Articles
  • AssureSign for DocumentsCorePack
  • How to conditionally remove a watermark in DocumentsCorePack templates
  • Document Processing with DocumentsCorePack (DCP)
  • How to activate SharePoint in DocumentsCorePack
  • Fillable PDF forms
  • Document concatenation in DocumentsCorePack 
Leave A Comment Cancel reply

You must be logged in to post a comment.

Latest Articles
  • Office Theme Support of DocumentsCorePack
  • AssureSign for DocumentsCorePack
  • Dynamic Document Properties
  • How to conditionally remove a watermark in DocumentsCorePack templates
  • Document Processing with DocumentsCorePack (DCP)
Popular Articles
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • DocumentsCorePack Online Service Configuration
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
Top Rated Articles
  • IMPORTANT information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
  • Online Services: Required Application Permissions
  • How licenses are counted
Categories
  • *News and General Infos* 51
  • Webinars 34
  • Template Designer(DCP 173
  • DocumentsCorePack(DCP 191
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 62
  • PowerSearch (PS 48
  • ActivityTools (AT 59
  • SmartBar (SB 53
  • GroupCalendar (GC 46
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.