Skip to content

Fix: pass returnFieldsByFieldId to getRecord for Airtable actions #16391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtable_oauth-create-comment",
name: "Create Comment",
description: "Create a comment on a selected record. [See the documentation](https://airtable.com/developers/web/api/create-comment)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "airtable_oauth-create-field",
name: "Create Field",
description: "Create a new field in a table. [See the documentation](https://airtable.com/developers/web/api/create-field)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
key: "airtable_oauth-create-multiple-records",
name: "Create Multiple Records",
description: "Create one or more records in a table in a single operation with an array. [See the documentation](https://airtable.com/developers/web/api/create-records)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "airtable_oauth-create-or-update-record",
name: "Create or Update Record",
description: "Create a new record or update an existing one. [See the documentation](https://airtable.com/developers/web/api/create-records)",
version: "0.1.2",
version: "0.1.3",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "airtable_oauth-create-single-record",
name: "Create Single Record",
description: "Adds a record to a table.",
version: "0.0.11",
version: "0.0.12",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtable_oauth-create-table",
name: "Create Table",
description: "Create a new table. [See the documentation](https://airtable.com/developers/web/api/create-table)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
airtable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "airtable_oauth-delete-record",
name: "Delete Record",
description: "Delete a selected record from a table. [See the documentation](https://airtable.com/developers/web/api/delete-record)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "airtable_oauth-get-record-or-create",
name: "Get Record Or Create",
description: "Get a specific record, or create one if it doesn't exist. [See the documentation](https://airtable.com/developers/web/api/create-records)",
version: "0.0.12",
version: "0.0.13",
type: "action",
props: {
...common.props,
Expand Down
8 changes: 7 additions & 1 deletion components/airtable_oauth/actions/get-record/get-record.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ export default {
key: "airtable_oauth-get-record",
name: "Get Record",
description: "Get data of a selected record from a table. [See the documentation](https://airtable.com/developers/web/api/get-record)",
version: "0.0.11",
version: "0.0.12",
type: "action",
props: {
...common.props,
returnFieldsByFieldId: {
propDefinition: [
airtable,
"returnFieldsByFieldId",
],
},
recordId: {
propDefinition: [
airtable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "List Records in View",
description: "Retrieve records from a view, optionally sorting and filtering results. [See the documentation](https://airtable.com/developers/web/api/list-views)",
type: "action",
version: "0.0.10",
version: "0.0.11",
...commonList,
props: {
accountTierAlert: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "List Records",
description: "Retrieve records from a table, optionally sorting and filtering results. [See the documentation](https://airtable.com/developers/web/api/list-records)",
type: "action",
version: "0.0.10",
version: "0.0.11",
...commonList,
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "airtable_oauth-search-records",
name: "Search Records",
description: "Search for a record by formula or by field value. [See the documentation](https://airtable.com/developers/web/api/list-records)",
version: "0.0.12",
version: "0.0.13",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtable_oauth-update-comment",
name: "Update Comment",
description: "Update an existing comment on a selected record. [See the documentation](https://airtable.com/developers/web/api/update-comment)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "airtable_oauth-update-field",
name: "Update Field",
description: "Update an existing field in a table. [See the documentation](https://airtable.com/developers/web/api/update-field)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "airtable_oauth-update-record",
name: "Update Record",
description: "Update a single record in a table by Record ID. [See the documentation](https://airtable.com/developers/web/api/update-record)",
version: "0.0.11",
version: "0.0.12",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtable_oauth-update-table",
name: "Update Table",
description: "Update an existing table. [See the documentation](https://airtable.com/developers/web/api/update-table)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
...common.props,
Expand Down
12 changes: 9 additions & 3 deletions components/airtable_oauth/airtable_oauth.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,16 @@ You can also reference an object exported by a previous step, e.g. \`{{steps.foo
: axios($, config);
},
getRecord({
baseId, tableId, recordId,
baseId,
tableId,
recordId,
opts = {},
}) {
const base = this.base(baseId);
return base(tableId).find(recordId);
return this._makeRequest({
method: "GET",
path: `/${baseId}/${tableId}/${recordId}`,
params: opts,
});
},
listBases(args = {}) {
return this._makeRequest({
Expand Down
5 changes: 5 additions & 0 deletions components/airtable_oauth/common/actions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export default {
baseId,
tableId,
recordId,
// Added 2025-04-22: Ensure returnFieldsByFieldId is passed to the API.
// Previously, this option was defined in the action but not forwarded to the API call.
opts: {
returnFieldsByFieldId: ctx.returnFieldsByFieldId,
},
});

$.export("$summary", `Fetched record "${recordId}" from ${ctx.baseId?.label || baseId}: [${ctx.tableId?.label || tableId}](https://airtable.com/${baseId}/${tableId})`);
Expand Down
2 changes: 1 addition & 1 deletion components/airtable_oauth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/airtable_oauth",
"version": "0.4.4",
"version": "0.4.5",
"description": "Pipedream Airtable (OAuth) Components",
"main": "airtable_oauth.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/airtable_oauth/sources/new-field/new-field.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Field Created (Instant)",
description: "Emit new event when a field is created in the selected table. [See the documentation](https://airtable.com/developers/web/api/get-base-schema)",
key: "airtable_oauth-new-field",
version: "1.0.2",
version: "1.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
name: "New Record Created, Updated or Deleted (Instant)",
description: "Emit new event when a record is added, updated, or deleted in a table or selected view.",
key: "airtable_oauth-new-modified-or-deleted-records-instant",
version: "0.1.2",
version: "0.1.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New, Modified or Deleted Records",
description: "Emit new event each time a record is added, updated, or deleted in an Airtable table. Supports tables up to 10,000 records",
key: "airtable_oauth-new-modified-or-deleted-records",
version: "0.0.11",
version: "0.0.12",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New or Modified Field (Instant)",
description: "Emit new event when a field is created or updated in the selected table",
key: "airtable_oauth-new-or-modified-field",
version: "1.0.2",
version: "1.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New or Modified Records in View",
description: "Emit new event for each new or modified record in a view",
key: "airtable_oauth-new-or-modified-records-in-view",
version: "0.0.12",
version: "0.0.13",
type: "source",
props: {
...base.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New or Modified Records (Instant)",
key: "airtable_oauth-new-or-modified-records",
description: "Emit new event for each new or modified record in a table or view",
version: "1.0.2",
version: "1.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Records in View",
description: "Emit new event for each new record in a view",
key: "airtable_oauth-new-records-in-view",
version: "0.0.11",
version: "0.0.12",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Record(s) Created (Instant)",
description: "Emit new event for each new record in a table",
key: "airtable_oauth-new-records",
version: "1.0.2",
version: "1.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down