fferpcore.MappingServiceglobal with sharing class MappingService Retrieve information about custom mappings created by the FDN Mappings component. Properties
Methods
getCustomMappingsglobal static List<fferpcore.MappingService.CustomMapping> getCustomMappings(String process) Retrieve the custom mappings for a specific process, including enabled and disabled mappings. Input Parameters
Return ValueA list of custom mappings for the specified process. getCustomMappingsglobal static Map<String, List<fferpcore.MappingService.CustomMapping>> getCustomMappings(Set<String> processes) Retrieve the custom mappings for multiple processes, including enabled and disabled mappings. Input Parameters
Return ValueA map of custom mappings objects for the specified processes, keyed by process name. fferpcore.MappingService.CustomMappingglobal inherited sharing class CustomMapping Data about a single custom mapping for a single process. Methods
CustomMappingglobal CustomMapping(String process, List<List<String>> sourceKeys, List<List<String>> targetKeys) Create a custom mapping. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. String process = 'c2g__SomeProcess'; List<List<String>> sourceKeys = new List<List<String>>{ new List<String>{'SomeRelationship__r', 'SomeSourceField__c'}, new List<String>{'SomeOtherRelationship__r', 'SomeOtherSourceField__c'} }; List<List<String>> targetKeys = new List<List<String>>{ new List<String>{'SomeTargetField__c'} }; fferpcore.MappingService.CustomMapping customMapping = new fferpcore.MappingService.CustomMapping(process, sourceKeys, targetKeys); withNameglobal fferpcore.MappingService.CustomMapping withName(String name) Specify a name for the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withTypeglobal fferpcore.MappingService.CustomMapping withType(String type) Specify the custom mapping type.
Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withSourcePathglobal fferpcore.MappingService.CustomMapping withSourcePath(List<String> path) Specify the source path of the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. Sample DataList<String> path: new List<String>{'SomeRelationship__r', 'SomeNestedRelationship__r'} withTargetPathglobal fferpcore.MappingService.CustomMapping withTargetPath(List<String> path) Specify the target path of the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. Sample DataList<String> path: new List<String>{'SomeRelationship__r', 'SomeNestedRelationship__r'} withTransformationTableglobal fferpcore.MappingService.CustomMapping withTransformationTable(Id transformationTable) Specify a data transformation table to apply to the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withStaticDataglobal fferpcore.MappingService.CustomMapping withStaticData(String staticData) Specify the static data for the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withStaticDescriptionglobal fferpcore.MappingService.CustomMapping withStaticDescription(String staticDescription) Specify a description for the static data in the custom mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withCorrelationStrategyglobal fferpcore.MappingService.CustomMapping withCorrelationStrategy(String correlationStrategy) Specify a correlation strategy for the custom mapping to determine whether child records are created or updated.
Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withCorrelationSourceKeyglobal fferpcore.MappingService.CustomMapping withCorrelationSourceKey(List<String> correlationSourceKey) Specify the field on the source that contains a unique identifier. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withCorrelationTargetKeyglobal fferpcore.MappingService.CustomMapping withCorrelationTargetKey(String correlationTargetKey) Specify a field on the target in which to store the source's unique identifier. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withFiltersglobal fferpcore.MappingService.CustomMapping withFilters(List<String> filters) Specify a filter that determines whether to create or update target records. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withLookupFieldglobal fferpcore.MappingService.CustomMapping withLookupField(String lookupField) Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withAdditionalLookupFieldglobal fferpcore.MappingService.CustomMapping withAdditionalLookupField(String additionalLookupField) Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withTargetChildTypeglobal fferpcore.MappingService.CustomMapping withTargetChildType(String targetChildType) Specify the name of the category for the target child record. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withConditionglobal fferpcore.MappingService.CustomMapping withCondition(List<String> condition) Specify the condition key to use for this mapping. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withDisabledglobal fferpcore.MappingService.CustomMapping withDisabled(Boolean disabled) Specify whether the mapping is disabled. If null or not specified using this function or withEnabled(), the mapping cannot be disabled in the FDN Mappings component. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. withEnabledglobal fferpcore.MappingService.CustomMapping withEnabled(Boolean enabled) Specify whether the mapping is enabled. If null or not specified using this function or withDisabled(), the mapping cannot be disabled in the FDN Mappings component. Input Parameters
Return ValueThe CustomMapping instance to allow further method calls. getNameglobal String getName() Return ValueThe name of the custom mapping. Null if no name was provided. getTypeglobal String getType() Identify the type of the custom mapping.
Return ValueThe type of the custom mapping. getSourceKeysglobal List<List<String>> getSourceKeys() Return ValueAll the source key paths. Sample DataSomeField__c SomeLookup__r, SomeOtherField__c getSourceKeyglobal List<String> getSourceKey() Return ValueThe first source key path. Sample DataSomeLookup__r, SomeOtherField__c getSingleSourceKeyglobal String getSingleSourceKey() Return ValueThe first source key in the first source key path. Sample DataSomeField__c getTargetKeysglobal List<List<String>> getTargetKeys() Retrieve the target keys for the custom mapping. Return ValueAll the target key paths. getSingleTargetKeyglobal String getSingleTargetKey() The first target key in the first target key path. Sample DataSomeTargetField__c getSourcePathglobal List<String> getSourcePath() Return ValueThe relationship keys that identify the location of the source data in the record hierarchy. Sample DataSomeRelationship__r, SomeNestedRelationship__r getTargetPathglobal List<String> getTargetPath() Return ValueThe relationship keys that identify the location of the target data in the record hierarchy. Sample DataSomeRelationship__r, SomeNestedRelationship__r getTransformationTableglobal Id getTransformationTable() Return ValueThe record ID of the data transformation table associated with the mapping. getStaticDataglobal String getStaticData() Return ValueThe exact value to map to the target location. getStaticDescriptionglobal String getStaticDescription() Return ValueThe description of the static data. getCorrelationStrategyglobal String getCorrelationStrategy() Identify the correlation strategy of the custom mapping.
Return ValueThe correlation strategy, which specifies how to create and maintain linked data. getCorrelationSourceKeyglobal List<String> getCorrelationSourceKey() Return ValueThe field on the source that contains a unique identifier. This is used to synchronize source and target data. getCorrelationTargetKeyglobal String getCorrelationTargetKey() Return ValueThe target field that contains the source's unique identifier. The unique identifier is compared when updating the target. getFiltersglobal List<String> getFilters() Return ValueThe source field that determines whether records are created or updated. For records to be created or updated, the value must evaluate to true. getLookupFieldglobal String getLookupField() Return ValueThe API name of the primary field on the source. This is used for lookup mappings to identify a lookup record. getAdditionalLookupFieldglobal String getAdditionalLookupField() Return ValueThe API name of an additional field on the source. This is used for lookup mappings to identify a single lookup record when record names are not unique. getTargetChildTypeglobal String getTargetChildType() Return ValueThe name of the category for the child record. Target child types enable you to create multiple target child records from a single source child record. Sample DataDefault, Debit Line, Admin Fee getConditionglobal List<String> getCondition() Return ValueThe condition key for this mapping. Conditions enable you to update a target field based on specific information on the source. When specified, the source data value must evaluate to true for the mapping to be applied. getDisabledglobal Boolean getDisabled() Return ValueThe value that indicates whether the mapping is currently disabled. A null value indicates that this mapping cannot be disabled in the FDN Mappings component. getEnabledglobal Boolean getEnabled() Return ValueThe value that indicates whether the mapping is currently enabled. A null value indicates that this mapping cannot be disabled in the FDN Mappings component. |