EventRelayConfig
Parent Type
File Suffix and Directory Location
EventRelayConfig components have the suffix .eventRelay and are stored in the eventRelays folder.
Version
EventRelayConfig components are available in API version 56.0 and later.
Special Access Rules
- You must have the Customize Application permission to deploy and retrieve this type.
- You can update only the state and relayOption fields and not eventChannel or destinationResourceName.
Fields
| Field Name | Description |
|---|---|
| destinationResourceName |
|
| eventChannel |
|
| label |
|
| relayOption |
|
| state |
|
| usageType |
|
Declarative Metadata Sample Definition
The following is an example of an EventRelayConfig component with the file name Carbon_Comparison_Relay.eventRelay.
1<?xml version="1.0" encoding="UTF-8"?>
2<EventRelayConfig xmlns="http://soap.sforce.com/2006/04/metadata">
3 <destinationResourceName>callout:AWS_Account</destinationResourceName>
4 <eventChannel>Carbon_Comparison_Channel__chn</eventChannel>
5 <label>Carbon Comparison Relay</label>
6 <relayOption>{\"ReplayRecovery\":\"LATEST\"}</relayOption>
7 <state>STOP</state>
8</EventRelayConfig>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>Carbon_Comparison_Relay</members>
5 <name>EventRelayConfig</name>
6 </types>
7 <version>66.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.