Foundations Apex API Developer Reference

fferpcore.FieldTransformMapping

global inherited sharing class FieldTransformMapping implements TransformMapping, TransformMappingWithTarget

A mapping for use with the fferpcore.TransformService that extracts data from a field on a source object and populates a field on a target object.

This class implements the following interfaces:

Methods

FieldTransformMapping

global FieldTransformMapping(String sourceKey, String targetKey)

Create a FieldTransformMapping.
The possible source and target keys are dictated by the source and target contexts, respectively.
For example, the fferpcore.Context.SObjectContext requires API names of SObject fields.

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.

Sample Data

String sourceKey: 'SomeSourceField__c'
String targetKey: 'SomeTargetField__c'

FieldTransformMapping

global FieldTransformMapping(List<String> sourceKeys, String targetKey)

Create a FieldTransformMapping.
The possible source and target keys are dictated by the source and target contexts, respectively.
For example, the fferpcore.Context.SObjectContext requires API names of SObject fields.

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.

Sample Data

List<String> sourceKeys: 'SomeLookupField__c', 'SomeSourceField__c'
String targetKey: 'SomeTargetField__c'

getSourceKeys

global List<String> getSourceKeys()

Return Value

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

getTargetKey

global String getTargetKey()

Return Value

The key that identifies the destination field to populate.

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