- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 17, 2023 06:06 AM
Hi support team!
I am building custom extension using airtable blocks sdk.
Workflow here.
1. When I click "Get companies" button in extension section, the extension will call 3rd party API.
2. The API returns the result as a JSON format. Json contains record Ids of a table named "All companies".
3. After this, I want to refresh airtable view of a table that is selected record ids returned from API.
Is it possible?
Please help me, thanks.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 19, 2023 02:17 AM
Oh, seems like there is no expert in airtable community.
Omg
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Aug 01, 2023 04:18 AM
Airtable Blocks SDK (now known as Airtable Apps SDK) does not provide a direct method to refresh the Airtable view from the custom block. However, you can potentially use the data returned from the API to manipulate the records in your table using the updateRecordsAsync function.
Here's a general flow of how you could do it:
- Click "Get companies" button and fetch data from the 3rd party API.
- The API returns a JSON containing record IDs from the "All companies" table.
- Use the returned record IDs to fetch the corresponding records from your Airtable base.
- Manipulate the fetched records as per your requirements using updateRecordsAsync.
MyTHDHR