Run Outbound Mapping for Related Records Action

The Run Outbound Mapping for Related Records Action is used to run all outbound mappings for the specified related object for the specified Integration Scenario.

 

For example, with an Integration Scenario that has outbound mappings configured for Opportunity and OpportunityLineItem, when the Flow is run on an Opportunity record and OpportunityLineItem is specified in the Action, the Action will only run the OpportunityLineItem outbound mapping, not the Opportunity mappings too.

Add this Action to your flow for each related object to the parent object, which, in this example's case, would be all the related objects to Opportunity that you have outbound mappings for.

 

Category: Overcast

Label: Run outbound mapping for related records

Name: apex-overcast__ActionRunOutboundMappingForRelated

 

Inputs

Scenario name (required)

The name of the Data Synchronization Integration Scenario to run outbound mappings.

 

Scenario input (optional)

The name for the Data Set. When Auto is selected, the Flow interview unique ID will be used, prefixed with auto_. When Manual, the text should match the Scenario inputs of any previous mapping Actions. Auto should be used for one-time/unique transactions, and Manual can be used for recurring or fixed data sets. 

 

Current Record (required)

The ID of the current record the Flow is processing. Screen Flows require the recordId variable, so use recordId. Record-triggered Flows provide $Record.Id, so use $Record.Id.

 

Related object (required)

The API name of the related object that references the current object. I.e., when the current record is an Opportunity, the relatedObject is OpportunityLineItem. 

 

Related object lookup (required)

The API name of the lookup field on the related object that references the current object. I.e., when the relatedOpportunity, the relatedRecordLookup is OpportunityId.

 

Specific mappings to run (optional)

A comma-separated list of specific mappings to run. This is useful if you have outbound mappings that should only be run under specific conditions.

 

Log to a Run record for Mapping (toggle)

Enable to report status logs to a Run record (in the Monitoring screen) dedicated to mapping. All other Actions should refer to the same Run record. 

Disable to skip logging to a mapping run record. Useful for Flows that prepare a Data Set but do not run a Scenario.

Enabled is recommended.

Output

Mapping Run Record

If the toggle Log to a Run record for Mapping is enabled, it is the record ID. Otherwise, it is blank.

 

Scenario Input

This is the Scenario Input value used for the operation. If Scenario Input input value is manually set, then it contains the value that is manually set, otherwise, it is the value that is is automatically set. This value can be used when needing to create additional records for the outbound mapping.