1. Fields
  2. Select Resource Field

Fields

Select Resource Field

The Select Resource Field allows for selecting items from dynamic resources.

This can be used to select items from a dynamic resource such as states, contacts, or Google Sheets.

Basic usage

Adds a selectresource field to the fields of an action.
This will show all of the states defined in the flow in a select field.

loading...

Result

The field will be displayed as a select field as below: Preview of a state selectresource field in a form

The resultant data will be available in the stubpost.data as:

loading...

This can be substituted with eg. ~~stubpost.data.state_selector where required.

Parameters

See fields for common parameters.

params.resource_name

required
string

The specific name of the resource you would like to load for selection.

One Of: states | contacts | google_sheets


params.dataresourceinterfaceuuid

optional

The UUID of the data resource interface that you would like to load for selection.

Google Sheets Interface Uuid: fb856d6a-8e69-4f52-a08a-0a01737196b1


params.details.orgcredentialuuid

optional

The UUID of the organization credential that you would like to use to access the resource.

See credentials for more information.


params.params

optional
object

Additional parameters specific to the resource in question. See examples below.


Examples

These are some more complex examples

Select value from a Google Sheet

This will allow selecting values from the specified Google Sheet.

loading...
Parameters

params.spreadsheet_id

required
string

The Google spreadsheetId.


params.sheet_title

required
string

The title of the sheet in the Google Spreadsheet.


params.filter_column

required
string

The column that will be used to filter the results and is used as the label in the select field.


params.additional_columns

optional
string

Additional columns that will be included in the selected value.