fferpcore.RecordIdTransformRequestglobal inherited sharing class RecordIdTransformRequest extends TransformService.TransformRequest An implementation of a fferpcore.TransformService.TransformRequest to support the common use case of generating SObject records from a collection of alternate SObject record IDs. This class extends fferpcore.TransformService.TransformRequest Methods
RecordIdTransformRequestglobal RecordIdTransformRequest(Set<Id> sourceRecordIds, SObjectType targetObject, List<fferpcore.TransformMapping> mappings) Create a RecordIdTransformRequest. Input Parameters
withSourceCorrelationFieldglobal fferpcore.RecordIdTransformRequest withSourceCorrelationField(SObjectField sourceCorrelationField) Specify the field that uniquely identifies the source SObject records in order to identify existing target SObject records. Input Parameters
Return ValueThe RecordIdTransformRequest instance to allow further method calls. withTargetCorrelationFieldglobal fferpcore.RecordIdTransformRequest withTargetCorrelationField(SObjectField targetCorrelationField) Specify the field on the target SObject record in which to store the source correlation value. Required in order to identify existing target SObject records. Input Parameters
Return ValueThe RecordIdTransformRequest instance to allow further method calls. withCommitglobal fferpcore.RecordIdTransformRequest withCommit(Boolean commitRecords) Specify whether the target records should be committed to the database. Input Parameters
Return ValueThe RecordIdTransformRequest instance to allow further method calls. getDataTargetglobal override fferpcore.DataTargetRoot getDataTarget() The data target defines how target records will be created. It can be used to retrieve the transformed SObject records or check if the user has access to the target SObjects and SObjectFields. Return ValueAn instance of SObjectDataTarget. |