fferpcore.LookupTransformMappingglobal inherited sharing class LookupTransformMapping implements TransformMapping, TransformService.TransformMappingWithTarget A mapping for use with the fferpcore.TransformService which populates a target field with a value from a related record. This class implements the following interfaces: Methods
LookupTransformMappingglobal LookupTransformMapping(String sourceKey, String targetKey) LookupTransformMappingglobal LookupTransformMapping(List<String> sourceKeys, String targetKey) Create a LookupTransformMapping. Input Parameters
Sample DataList<String> sourceKeys: 'SomeSourceField1__c', 'SomeSourceField2__c' String targetKey: 'SomeTargetField__c' LookupTransformMappingglobal LookupTransformMapping(List<List<String>> sourceKeys, String targetKey) Create a LookupTransformMapping. Input Parameters
withLookupObjectglobal fferpcore.LookupTransformMapping withLookupObject(SObjectType lookupObject) Specify the SObjectType that contains the record you want to locate. This is useful when the target field is not a lookup field. Input Parameters
Return ValueThe instance of the LookupTransformMapping to enable fluent invocations. withQueryFieldsglobal fferpcore.LookupTransformMapping withQueryFields(List<SObjectField> queryFields) Specify the field or fields on the lookup object to use to identify the record. By default, this is the name field. For records that do not contain unique names, specify an additional field to identify a single record. Input Parameters
Return ValueThe instance of the LookupTransformMapping to enable fluent invocations. withResultFieldglobal fferpcore.LookupTransformMapping withResultField(SObjectField resultField) Specify the field on the located record that populates the target field. By default, this is the record ID. Input Parameters
Return ValueThe instance of the LookupTransformMapping to enable fluent invocations. getSourceKeysglobal List<List<String>> getSourceKeys() Return ValueThe list of key paths that identify the field paths that lead to the source data. getTargetKeyglobal String getTargetKey() Return ValueThe key that identifies the destination field to populate. getQueryFieldsglobal List<SObjectField> getQueryFields() Return ValueA list of SObjectFields to query on the lookup object. getResultFieldglobal SObjectField getResultField() Return ValueA field on the lookup object that populates the target field. |