• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/DocumentsCorePack(DCP)/Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing)

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing)

2500 views 0 Updated on January 29, 2025

Customer Journeys in Dynamics 365 Customer Insights (formerly Dynamics 365 Marketing) helps guide members of a selected marketing segment through a predefined process. This process includes automated messaging, activity generation, interactive decision points, and more. 

In combination with Power Automate, DocumentsCorePack (DCP) adds the option to generate and deliver documents within these journeys. 

Examples: 

  • Create and print letters upon an event registration 
  • Create and send a contract for e-signing 
  • …. 

This article explains how it works and how to get started. 

Step-by-Step Video: Create documents in customer journeys

How is DocumentsCorePack used within Customer Journeys?

DocumentsCorePack can be used within any customer journey through the use of a custom trigger. This custom trigger can be configured to call a flow within Power Automate that then uses the DocumentsCorePack Connector to generate a document.

For the example in this article, we will add DCP functionality to a journey that is triggered when a contact is created.

Step 1: Creating the custom trigger

In a given journey, click the ‘+’ button to add an action.

Adding an action
Figure 1: Adding an action

On the following screen, choose “Activate a custom trigger.”  

Selecting "Activate a custom trigger"
Figure 2: Selecting “Activate a custom trigger”

Select the newly created action and create a new custom trigger under Select a custom trigger. 

Creating a new custom trigger
Figure 3: Creating a new custom trigger

In the New Trigger window, just click Next, then Next again on the following page, then Ready to use. 

The "Set up" screen
Figure 4: The “Set up” screen
Marking the trigger as "ready to use"
Figure 5: Marking the trigger as “ready to use”

After the custom trigger is set up, close the window.  The trigger should now be displayed in the Select a custom trigger dropdown. Make sure it is selected before continuing. 

Selecting the newly created trigger
Figure 6: Selecting the newly created trigger

This concludes setting up the customer journey. 

Step 2: Setting up our Flow 

Navigate to Power Automate and choose your marketing environment.  Create a new automated flow with When an action is performed (Microsoft Dataverse) as the starting trigger. 

Creating the flow
Figure 7: Creating the flow

In the starting trigger, set ❶ Catalog to “Cxp,” ❷ Category to “Custom,” ❸ Table name to “(none),” and ❹ Action name to the trigger created in the journey. 

Setting the starting action parameters
Figure 8: Setting the starting action parameters

Add another step to the Flow and choose Create document (sync) (V3).  

Selecting the "Create document" action
Figure 9: Selecting the “Create document” action

In the parameters of this step, set the ❶ Body/Template to a template from your environment, ❷ the Row ID to the ❸ profileid as shown below, and ❹ File Type to the desire file type (in our case, PDF). 

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 10: Setting the parameters for our “Create document” action

After setting the parameters, save your Flow.  The Flow is ready, however, you will need to add the following SettingsKey to your environment as well:

Name: EnableMarketing
IsCached: Yes
Keyvalue: true
Product: AutoMerge

Once you add and save this SettingsKey, your customer journey should trigger the Flow and generate a document.

Step 3: Viewing the result 

After you trigger our customer journey by creating a contact, the system generates the document.  

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 11: Our generated result

Extra Step: Adding Error Handling

We can also add error handling to our journey to check whether or not our flow has succeeded. To do this, trigger another action.

To configure this, add another action to the journey. Under Conditions, choose Wait for trigger.

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 12: Creating a Wait for trigger action

Add it to our journey as shown below:

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 13: Our journey with the newly added action

❶ Choose a branch condition type, select A trigger is activated. Then, create a ❷ new trigger. Set up the trigger the same way as outlined in Step 1 above.

❸ You must set a time limit. This is to detect if there is a response from the flow. If there is no response after a set time, then the journey will proceed down the above No branch.

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 14: Configuring the branch action

After configuring the action, return to Power Automate and open your flow. Add a new action under the Microsoft Dataverse connection called Perform an unbound action.

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 15: Adding the Perform an unbound action action

With the added action, the flow should look similar to the below:

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 16: Our flow with the new action

For the Action Name, choose the action you created the in previous flow step.

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 17: Filling in the action name

Pass in values for the parameters shown below. The values should come from the When an action is performed step.

Generate and process documents within Customer Journeys in Dynamics 365 Customers Insights (Marketing).
Figure 18: Filling in the parameters

Save the flow. The system has now configured the error handling.

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

Attached Files
#
File Type
File Size
Download
1 .pdf 1.70 MB Streamlined document processing within Customer Journeys
2 .pdf 1.44 MB Turning prospects into customers – Lead conversion strategies 

Was this helpful?

Yes  1 No
Related Articles
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
  • Generate and send a document for e-signing using DeepSign
  • How to prepare a document for DeepSign
Latest Articles
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • How to Eliminate Excess Storage Costs in Microsoft Dynamics 365 Without Losing Access to Emails and Attachments
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
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 to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 64
  • Webinars 45
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 259
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 75
  • 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.