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)/Attaching documents from SharePoint when sending emails via the DocumentsCorePack dialog

Attaching documents from SharePoint when sending emails via the DocumentsCorePack dialog

1662 views 3 Updated on February 2, 2024

This article outlines how to add documents stored on SharePoint to an email via the DocumentsCorePack (DCP) dialog.  The article will cover how to enable this feature and will walk you through an example use case.  

Our Use-Case: We would like to send an email from a quote record.  This email should have a generated document based on the quote itself. In addition, users should be able to select additional documents from SharePoint (Product specifications) to be attached to the email.

Prerequisites 

To enable this feature, the following prerequisites must be met: 

  • AutoMergeGlobalButton: 2020.220 or higher 
  • AutomergeServerCore: 2020.139 or higher 
    • To update either of the above, see here 
  • A SettingsKey with the following values: 
    • Name: AdditionalDocuments 
    • Product: DocumentsCorePack 

The SettingsKey’s value should be formatted like the following:

{"flagActive":"ENTITY","fields":{"ENTITY":["LOOKUP"]}}
  • Note:
    • ENTITY: Entity that should have this feature enabled.
    • LOOKUP: Lookup to related records whose document locations should also be made available. 
    • Please refer to Figure 1 below for an example

Step-by-Step description

Since we want to start this process from a quote record, we’ll need to make sure our SettingsKey is configured properly. 

AdditionalDocuments SettingsKey
Figure 1: Our AdditionalDocuments SettingsKey, configured to work with the Quote entity

You can copy and paste the following value into your own SettingsKey: 

{"flagActive":"quote","fields":{"quote":["customerid"]}}

This configuration will enable access to files located in the SharePoint location of the quote record as well as the potential-customer record. Once configured, navigate to a quote record of your choosing.  Open the Create Document dialog and continue until you reach the document processing options. 

Here, you can select to attach a document (1) as email attachment or as email content. Selecting either option will cause the (2) Additional Attachments setting to appear.  When this setting is checked, the button to select files will be enabled. 

In our case, we want to add our additional documents as PDFs, so we will attach our documents as email attachments.  We will then click on the Select Files button after enabling it. 

the additional attachments setting
Figure 2: The DCP Dialog, displaying the “Additional Attachments” setting

A new window, titled Document – Selection, appears.  In this window, you can navigate through your SharePoint folders and select which files you would like to add to your email.  You can add any file by double-clicking it and selecting OK.  In our case, we will add our product PDFs. 

adding our attachments
Figure 3: Adding our attachments through the selection window

Once your files have been added, you can proceed with the document generation process.  When the process is finished, your email should have the generated document and the additional documents added. 

three pdfs
Figure 4a: Three of the PDFs added to our email through Additional Attachments
the other attachments
Figure 4b: The other PDF (1) and our generated document (2) attached to our email

Additional Examples

In situations where other document locations are not needed, we can adjust the SettingsKey value to exclude the lookup from the document selection window. The value can be formatted to the following, where ENTITY is the entity’s name to configure the setting for:

{"flagActive":"ENTITY"}
The document selection window without the extra lookup
Figure 5: The document selection window without the extra lookup

Alternatively, if the setting should simply be enabled for all entities, the following value can be used instead:

{"flagActive":true}

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

Was this helpful?

3 Yes  No
Related Articles
  • Security issues when installing DocumentsCorePack (Defender)
  • 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 
Latest Articles
  • mscrm-addons.com: 2025 Year in Review
  • Security issues when installing DocumentsCorePack (Defender)
  • AttachmentExtractor: Bandwidth & Performance – FAQ 
  • Recap: Power Platform Community Conference 2025
  • Recap: Community Summit 2025
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How licenses are counted
  • How to find your environment’s unique name in Microsoft Dynamics 365
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* 70
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 264
  • 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.