Skip to content

Commit 8b45320

Browse files
committed
Improvements
1 parent fc001dd commit 8b45320

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

components/airtable_oauth/actions/create-single-record/create-single-record.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import common from "../common/common.mjs";
55
export default {
66
key: "airtable_oauth-create-single-record",
77
name: "Create Single Record",
8-
description: "Adds a record to a table.",
8+
description: "Adds a record to a table. [See the documentation](https://airtable.com/developers/web/api/create-records)",
99
version: "0.0.7",
1010
type: "action",
1111
props: {
1212
...common.props,
13-
// eslint-disable-next-line pipedream/props-label,pipedream/props-description
1413
tableId: {
1514
...common.props.tableId,
1615
reloadProps: true,

components/airtable_oauth/airtable_oauth.app.mjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ export default {
180180
},
181181
returnFieldsByFieldId: {
182182
type: "boolean",
183-
label: "Return Fields By Field ID",
184-
description: "If set to `true`, the returned field objects will have the field ID as the key, instead of the field name (default behavior).",
183+
label: "Return Fields By ID",
184+
description: "If set to `true`, the returned field objects will have the field ID as the key, instead of the field name.",
185185
optional: true,
186186
},
187187
sortDirection: {
@@ -212,13 +212,20 @@ export default {
212212
typecast: {
213213
type: "boolean",
214214
label: "Typecast",
215-
description: "The Airtable API will perform best-effort automatic data conversion from string values if the typecast parameter is `True`. Automatic conversion is disabled by default to ensure data integrity, but it may be helpful for integrating with 3rd party data sources.",
215+
description: "The Airtable API will perform best-effort automatic data conversion from string values if the typecast parameter is `True`. This is disabled by default to ensure data integrity, but it may be helpful for integrating with 3rd party data sources.",
216216
optional: true,
217217
},
218218
record: {
219219
type: "object",
220220
label: "Record",
221-
description: "Enter the column name for the key and the corresponding column value. You can include all, some, or none of the field values. You may also pass a JSON object as a custom expression with key/value pairs representing columns and values (e.g., `{{ {\"foo\":\"bar\",\"id\":123} }}`). A common pattern is to reference an object exported by a previous step (e.g., `{{steps.foo.$return_value}}`).",
221+
description: "Enter the column name for the key and the corresponding column value. You can include all, some, or none of the field values. You may also use a custom expression.",
222+
},
223+
customExpressionInfo: {
224+
type: "alert",
225+
alertType: "info",
226+
content: `A custom expression can be a JSON object with key/value pairs representing columns and values, e.g. \`{{ { "foo": "bar", "id": 123 } }}\`.
227+
\\\\
228+
You can also reference an object exported by a previous step, e.g. \`{{steps.foo.$return_value}}\`.`,
222229
},
223230
},
224231
methods: {

components/airtable_oauth/common/actions.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default {
2323
// Use record propDefinition directly to workaround lack of support
2424
// for propDefinition in additionalProps
2525
record: airtable.propDefinitions.record,
26+
customExpressionInfo: airtable.propDefinitions.customExpressionInfo,
2627
};
2728
}
2829
throw new ConfigurationError("Could not find a table for the specified base ID and table ID. Please adjust the action configuration to continue.");

0 commit comments

Comments
 (0)