• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/DocumentsCorePack(DCP)/Dataverse Online OData v2.0 endpoint removal for custom “ExportToWord” Button

Dataverse Online OData v2.0 endpoint removal for custom “ExportToWord” Button

215 views 0

The JavaScript code template included in local DocumentsCorePack server installations utilizes the outdated OData v2.0 endpoint, which is set to be phased out in the near future. It is expected that the custom buttons will stop working. Find more information on this topic here.

This article describes the steps to take regarding the Dataverse Online OData v2.0 endpoint removal with respect to custom ExportToWord buttons. 

IMPORTANT: This article is only relevant if you created a custom “ExportToWord”-button that triggers the DocumentsCorePack Client. The CreateDocument Dialog for server-based document generation is not affected.

Am I affected by this change?

To help determine if you’re affected by this change, you need to verify if you have added custom ExportToWord buttons by using the “Advanced Button Configuration” function as shown in the below screenshot that shows the configuration option in the local DocumentsCorePack Server Configuration tool.

DocumentsCorePack Client Based Config
Figure1: DocumentsCorePack Client-Based Config

Step-by-step description: Troubleshoot

Step 1: Download the updated code template (using the web API instead).

Step 2: The script you currently use is saved as a JavaScript web resource called “ptm_dcp_custombuttonactions.js” in Dataverse. To access it, navigate to Dataverse > Advanced Settings > Settings > Customizations > Customize the System.

"Dyn

Step 3: In Web Ressources look for ptm_dcp_custombuttonactions.js

Look for ptm_dcp_custombuttonactions.js
Figure 3: Look for ptm_dcp_custombuttonactions.js

Important: Make a backup copy of the current content!

Step 4: First, you need to unzip the ptm_dcp_custombuttonactions.zip file that you previously downloaded.

Once you have done this, open the “ptm_dcp_custombuttonactions.js” code template included in the file using a script editor like Notepad++.
Then add your custom code to the top section of the template script.

To initiate the ExportToWord process from your custom code, execute the following function:

ptmDCPCBCustomButton.startExportToWord(selectedIds, typeCode, selectedItemCount, entityName, nameOfDCPTemplate);

Step 5: After you have inserted your custom code into the new template, you will need to update the content of the “ptm_dcp_custombuttonactions.js” web resource in Dataverse with your modified script.

Step 6: Save and publish it.

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
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Configure DocumentsCorePack within custom pages
  • Ensuring correct time zone display for DateTime fields
  • Document Generation Failure from Missing Privileges
Latest Articles
  • Document Generation via Copilot in Dynamics 365 Sales using DocumentsCorePack
  • DocumentsCorePack: Best practices for Dynamics 365 on-premises to online migration projects
  • Multilingual Support in DocumentsCorePack
  • Recap: ColorCloud 2025
  • Configure DocumentsCorePack within custom pages
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 licenses are counted
  • How to insert Condition Fields in DocumentsCorePack Templates designer
Categories
  • *News and General Infos* 62
  • Webinars 45
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 251
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 72
  • 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.