TransformServiceglobal with sharing class TransformService Transform source data using mappings to create or update target records. Methodstransformglobal static TransformService.TransformResult transform(TransformService.TransformRequest request) Perform the transform operation as specified in the transform request. Input Parameters
Return ValueA TransformResult instance containing summary information after running the operation. TransformService.TransformRequestglobal abstract class TransformRequest The data required to perform a transform operation.
Methods
getSourceContextglobal abstract Context getSourceContext() The source context describes the type of source data being processed, including:
The following implementations are provided by Foundations:
Return ValueThe Context instance. getDataTargetglobal abstract DataTargetRoot getDataTarget() The data target describes the target records being created, including:
The following implementations are provided by Foundations:
Return ValueThe DataTargetRoot instance. getSourceDataglobal abstract TransformSourceData getSourceData() The source data provides the raw data to be processed.
Return ValueThe TransformSourceData instance. getMappingsglobal virtual List<TransformMapping> getMappings() The mappings that specify how to populate the target record from the source record. Return ValueThe list of TransformMapping instances. TransformService.TransformResultglobal class TransformResult Information following a transform operation. Methods
addErrorglobal void addError(TransformError error) Add an error to the TransformResult. Input Parameters
getErrorsglobal List<TransformError> getErrors() Return ValueA list of all the TransformErrors in the TransformResult. |