See this table for a summary of Connect APIs to call Data Mappers from Apex classes.
Starting with Summer ’25, replace the existing methods in the DRGlobal Apex
classes with the Connect APIs.
Purpose
Connect API
Existing Method (Replace with Connect API)
Clear metadata cache for a Data Mapper
ConnectApi.DatamapperCacheInputParamRepresentation finalInput = new ConnectApi.DatamapperCacheInputParamRepresentation();
ConnectApi.DataMapperParamRepresentation param = new ConnectApi.DataMapperParamRepresentation();
param.dataMapperName = DataMapperName;
finalInput.dataMapperList = new List<ConnectApi.DataMapperParamRepresentation>();
finalInput.dataMapperList.add(param);
finalInput.cacheStorageType = ConnectApi.CacheStorageType.Metadata;
ConnectApi.DatamapperClearCacheOutputRepresentation response = ConnectApi.OmniDesignerConnect.clearDatamapperCache(finalInput);
Example:
ConnectApi.DatamapperCacheInputParamRepresentation finalInput = new ConnectApi.DatamapperCacheInputParamRepresentation();
ConnectApi.DataMapperParamRepresentation param = new ConnectApi.DataMapperParamRepresentation();
param.dataMapperName = 'DM_Create_Contact';
finalInput.dataMapperList = new List<ConnectApi.DataMapperParamRepresentation>();
finalInput.dataMapperList.add(param);
finalInput.cacheStorageType = ConnectApi.CacheStorageType.Metadata;
ConnectApi.DatamapperClearCacheOutputRepresentation response = ConnectApi.OmniDesignerConnect.clearDatamapperCache(finalInput);
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.