Apex RelayDynamicInput
  • 13 Nov 2024
  • 1 Minute to read
  • Dark
    Light

Apex RelayDynamicInput

  • Dark
    Light

Article summary

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

rn-sfdc-flows-resource-RelayDynamicInput

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.

WARNING

Do not include the input_ or ext_ prefix in the name.

inputValue

The value to be associated with the provided name.


Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence