- 13 Nov 2024
- 1 Minute to read
- Print
- DarkLight
Apex RelayDynamicInput
- Updated on 13 Nov 2024
- 1 Minute to read
- Print
- DarkLight
This resource is used to hold a single dynamic input name and value pair. This resource is used for both Relay dynamic input_ and ext_ definitions. You will need to create a single flow resource for each individual dynamic input that is required.
IMPORTANT
If you are defining a Relay dynamic input_ resource, make sure your Relay CSM has configured your Relay client with the same input name otherwise it can’t be used within a Relay experience. No additional configuration is required, on the Relay side, when defining dynamic ext_ resources.
NOTE
If you will just be extracting field values from the current $Record then it might be easier to use the dynamic input field name convention. See: Relay Dynamic Inputs
Create a RelayDynamicInput Resource
FIELD | DESCRIPTION |
---|---|
Resource Type | Must be set to Variable. |
API Name | Enter a name for this resource. |
Description | Optional description providing more detail around the usage of this resource. |
Data Type | Must be set to Apex-Defined. |
Allow Multiple Value | When creating a dynamic input_ or ext_ definition, leave this value un-checked. For the collection resource, this will be checked. See: Relay Dynamic Inputs |
Apex Class | Must be set to RelayDynamicInput. |
Available for input Available for output | Leave both un-checked. |
Assign Values to the RelayDynamicInput Resource
The RelayDynamicInput resource has two fields that need to be set with a Flow Assignment element.
FIELD | DESCRIPTION |
---|---|
inputName | The dynamic input name. This is the name that will be used in the Relay message template.
|
inputValue | The value to be associated with the provided name. |