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)/Step by Step: How to execute an OCA in a Power Automate flow 

Step by Step: How to execute an OCA in a Power Automate flow 

11 views 0

One-Click-Actions (OCAs) in DocumentsCorePack act as predefined configurations that simplify document generation. They are normally used within the DocumentsCorePack Dialog, but they can be used within flows as well.   

When creating a flow, there may be instances where including conditional logic is needed, but more cumbersome to implement.  For example, if you were to create a flow that generates and sends a document to a contact based on their country, you would need to construct that logic in the flow, thus adding complexity. 

By using a One-Click-Action to handle this instead, you can reduce the flow’s complexity and increase its readability. 

Creating the One-Click-Action 

Following the example mentioned above, we would like to create a flow that sends a welcome letter to a contact.  By default, the sent letter should be in English, but if the contact is from Germany, a German version of the letter should be sent instead. 

To create this flow, we’ll first need to create a contact-based One-Click-Action (OCA).  Under Template Settings, we’ll set Template Selection to Predefine Template.  The template we’ll chose will be our English language template. 

Setting our template in our OCA
Figure 1: Setting our template in our OCA

Next, click Open next to Conditional Template Selection.  Set the ❶ Condition Name, ❷ the Template, and ❸ click the Condition button to configure the condition. 

Configuring the conditional template
Figure 2: Configuring the conditional template

In the Choose Conditions window, select a field and set a value to build your condition.  In our case, since we want to check if the contact is from Germany, we’ll select the contact’s Country/Region field and the set the value to Germany.  Once you’ve set the condition, click OK and save your OCA. 

Configuring the condition
Figure 3: Configuring the condition

Tip: In your OCA, you can configure various processing options along with the template, such as setting the document to be saved to SharePoint, saved as a note, or printed.  This can help further reduce your flow’s complexity. 

Creating the flow 

To run the OCA in a flow, search for the Run One-Click-Action (sync) action under the DocumentsCorePack Connector and select it. 

Selecting the action
Figure 4: Selecting the action

Then, under One-Click-Action ID, select the OCA you created.  When the flow is run, the action will trigger this OCA. 

Setting our OCA
Figure 5: Setting our OCA

Running the flow 

After saving the flow, run it as you see fit.  In our case, we will be triggering our flow from a contact who is from Germany. 

Running our flow
Figure 6: Running our flow

When it finishes, the generated document should be the German version, as dictated from our OCA. 

Our generated result
Figure 7: Our generated result
Tags:Power AutomateOCAone-click-action

Was this helpful?

Yes  No
Related Articles
  • Locating Raw Inputs and Outputs in Power Automate
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
Latest Articles
  • Locating Raw Inputs and Outputs in Power Automate
  • Step by Step: How to execute an OCA in a Power Automate flow 
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
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* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 262
  • 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.