Foundations Apex API Developer Reference

fferpcore.StaticTransformMapping

global inherited sharing class StaticTransformMapping implements TransformMapping, TransformMappingWithTarget

A mapping for use with the fferpcore.TransformService that populates a target field with fixed data.

This class implements the following interfaces:

Methods

StaticTransformMapping

global StaticTransformMapping(Object sourceData, String targetKey)

Create a StaticTransformMapping.
The possible target keys are dictated by the target context.
For example, the fferpcore.Context.SObjectContext requires API names of SObject fields.

Input Parameters

Name Type Description
sourceData Object The data to use to populate the target field.
targetKey String The key that identifies the destination field to populate.

Sample Data

String sourceData: 'SomeFixedValue'
String targetKey: 'SomeTargetField__c'

withDescription

global fferpcore.StaticTransformMapping withDescription(String description)

Specify a description to display in the FDN Mappings component instead of the source data.

Input Parameters

Name Type Description
description String The text to display in the FDN Mappings component that describes the source data.

Return Value

The StaticTransformMapping instance to allow further method calls.

getSourceData

global Object getSourceData()

Return Value

The data to use to populate the target field.

getSourceDescription

global String getSourceDescription()

Return Value

The description of the data used to populate the target field.

getTargetKey

global String getTargetKey()

Return Value

The key that identifies the destination field to populate.

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