Foundations Apex API Developer Reference

fferpcore.TableTransformMapping

global inherited sharing class TableTransformMapping implements TransformMapping, TransformMappingWithTarget

A mapping for use with the fferpcore.TransformService that uses a data transformation table to find a matching target value for a given source value, and places the target value in the target field.

Useful when populating a picklist on a target record and the values each map to different values on the source records.

This class implements the following interfaces:

Methods

TableTransformMapping

global TableTransformMapping(String sourceKey, String targetKey, Id tableId)

Create a TableTransformMapping.

Input Parameters

Name Type Description
sourceKey String The key that identifies the field that contains the source data.
targetKey String The key that identifies the destination field to populate.
tableId Id The record ID of the data transformation table.

TableTransformMapping

global TableTransformMapping(List<String> sourceKeys, String targetKey, Id tableId)

Create a TableTransformMapping.

Input Parameters

Name Type Description
sourceKeys List<String> The keys that identify the field path that leads to the source data.
targetKey String The key that identifies the destination field to populate.
tableId Id The record ID of the data transformation table.

withAdditionalSource

global fferpcore.TableTransformMapping withAdditionalSource(String additionalSourceKey)

Specify an additional source key in order to use two values to find a matching target value in the data transformation table.

Input Parameters

Name Type Description
additionalSourceKey String The key that identifies the field that contains the additional source data.

Return Value

The TableTransformMapping instance to allow further method calls.

withAdditionalSource

global fferpcore.TableTransformMapping withAdditionalSource(List<String> additionalSourceKeys)

Specify an additional source key path in order to use two values to find a matching target value in the data transformation table.

Input Parameters

Name Type Description
additionalSourceKeys List<String> The keys that identify the field path that leads to the additional source data.

Return Value

The TableTransformMapping instance to allow further method calls.

getSourceKeys

global List<String> getSourceKeys()

Return Value

The keys that identify the field path that leads to the source data.

getAdditionalSourceKeys

global List<String> getAdditionalSourceKeys()

Return Value

The keys that identify the field path that leads to the additional source data.

getTargetKey

global String getTargetKey()

Return Value

The key that identifies the destination field to populate.

getTableId

global Id getTableId()

Return Value

The record ID of the data transformation table.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.