mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/DocumentsCorePack(DCP)/Create a document and attach it to an email in a single AutoMerge workflow-step

Create a document and attach it to an email in a single AutoMerge workflow-step

1739 views 1 Updated on July 27, 2022

This blog article outlines how to create a document and attach it to an email in a single AutoMerge workflow-step for MS CRM 2013 Online.

First open your CRM and go to “Settings” > “Processes” and create a “New” workflow:

image

Figure 1: Create new workflow

In the next window type in a “Process Name” e.g. “Test_Workflow”, choose the “Entity” for which you want to create the workflow for e.g. “Account”. Set the “Category” to “Workflow” in order to create a new workflow process. Click on “OK” to confirm.

image

Figure 2: Create a new process

First, the email has to be created. Therefore click on the “Add Step”-drop-down-button and choose “Create Record”. Type in a name for your step e.g. “Create Email” and set the “Create:” to “Email”. Then click on “Set Properties”.

image

Figure 3: create a record in AutoMerge Workflows.

An email activity opens. In this window, a sender, a subject and an email text has to be defined. Set the cursor in the “Recipient”-field to define the recipient. To do so, select “Look for: Account” in the “Form Assistant”-area on the right sight, click on “Add” and then on “OK”. Now the “Recipient”-field is filled out correctly. Follow the same instructions for the “Regarding”-field, in order to set the regarding entity. E.g: “Account”.

image

Figure 4: window to configure an email activity.

Click on “Save and Close”.

The second step would be to create a new MSCRM-ADDONS.com AutoMerge Working item, where the document is generated and attached to the email. To do this, add a new step with click on “Add Step” and choose “Create Record”. Type in a step description and set “Create:” to “MSCRM-ADDONS.com AutoMergeWorkingItems”

image

Figure 5: Add a MSCRM-ADDONS.com AutoMerge Working item.step

Click on “Set Properties”. In the next window type in a name and define the AutoMerge-action. E.g. “CreateDocument”. It it important to insert the “PrimaryRecordsUrl”. For that, set the cursor in the “PrimaryRecordUrl”-field and go to the “Look for:”-area within the form assistant on the right side and select “Record URL(Dynamics) from the second drop-down-menu, click on “Add” and “OK”.

To determine the Template to be executed, set your curser in the “TemplateToExecute” field and look for it. Next to this, a file format has do be defined. E.g “pdf”. In the “TemplateToExecute”-field search for the document that should be attached. E.g. “Account_Overview_DOCX.docx”. Next set the cursor in the “EmailToAttach”-field and go to the “Look for:”-area within the form assistant on the right side and select “Create Email (Email)”. Click on “Save and Close”. (See next screenshot)

image

Figure 6: workflow-step configuration. E.g. Create and attach a document to an email message.

Now your workflow is finished and ready to be used. The possible result could look like this:

image

Figure 7: Shows email workflow with pdf-document attached. Click to enlarge.

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

Was this helpful?

1 Yes  No
Related Articles
  • Locating Raw Inputs and Outputs in Power Automate
  • Step by Step: How to execute an OCA in a Power Automate flow 
  • Stop Losing Time & Money: How Manual Document Processes Hurt Your Business
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
Latest Articles
  • Recap: Community Summit 2025
  • Locating Raw Inputs and Outputs in Power Automate
  • Step by Step: How to execute an OCA in a Power Automate flow 
  • Stop Losing Time & Money: How Manual Document Processes Hurt Your Business
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
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
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • 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
Categories
  • *News and General Infos* 66
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 263
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 76
  • 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
  • © 2025 www.mscrm-addons.com. All Rights Reserved.