Foundations Object Model

RecordIdTransformRequest

global class RecordIdTransformRequest extends TransformService.TransformRequest

An implementation of a TransformService.TransformRequest to support the common use case of generating SObject records from a collection of alternate SObject record IDs.

This class extends TransformService.TransformRequest

Methods

RecordIdTransformRequest

global RecordIdTransformRequest(Set<Id> sourceRecordIds, SObjectType targetObject, List<TransformMapping> mappings)

Create a RecordIdTransformRequest.

Input Parameters

Name Type Description
sourceRecordIds Set<Id> The IDs of the source SObject records to be processed.
targetObject SObjectType The type of SObject to be created or updated.
mappings List<TransformMapping> The mappings that define how to populate the target SObjects from the source SObjects.

withSourceCorrelationField

global RecordIdTransformRequest withSourceCorrelationField(SObjectField sourceCorrelationField)

Specify the field that uniquely identifies the source SObject records in order to identify existing target SObject records.

Input Parameters

Name Type Description
sourceCorrelationField SObjectField The SObject field that uniquely identifies a source SObject record.

Return Value

The RecordIdTransformRequest instance to allow further method calls.

withTargetCorrelationField

global 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

Name Type Description
targetCorrelationField SObjectField The SObject field on the target SObject record in which to store the source record correlation value.

Return Value

The RecordIdTransformRequest instance to allow further method calls.

© Copyright 2009–2021 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.