--- title: "RelayDynamicInput" slug: "relaydynamicinput" updated: 2024-11-13T15:24:40Z published: 2024-11-13T15:24:40Z canonical: "docs.relaynetwork.com/relaydynamicinput" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.relaynetwork.com/llms.txt > Use this file to discover all available pages before exploring further. # Apex RelayDynamicInput 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. > [!WARNING] > 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] > 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](/v1/docs/relay-dynamic-inputs) ## Create a RelayDynamicInput Resource ![rn-sfdc-flows-resource-RelayDynamicInput](https://cdn.us.document360.io/6738087b-455d-402f-b70a-a44a4231547e/Images/Documentation/rn-sfdc-flows-resource-RelayDynamicInput.png) | 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](/v1/docs/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] > WARNING > > Do not include the **input_** or **ext_** prefix in the name. | | inputValue | The value to be associated with the provided name. | Every client will have a Relay Client Success Manager (CSM) assigned to the account. This person will be your primary point of contact for the duration of your engagement with Relay Network.