Help

How to refresh the view using airtable blocks sdk

Topic Labels: Custom Extensions
1391 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Shang1128
4 - Data Explorer
4 - Data Explorer

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.

2 Replies 2
Shang1128
4 - Data Explorer
4 - Data Explorer

Oh, seems like there is no expert in airtable community.

Omg

Oscarward
4 - Data Explorer
4 - Data Explorer

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:

  1. Click "Get companies" button and fetch data from the 3rd party API.
  2. The API returns a JSON containing record IDs from the "All companies" table.
  3. Use the returned record IDs to fetch the corresponding records from your Airtable base.
  4. Manipulate the fetched records as per your requirements using updateRecordsAsync.
Thanks
MyTHDHR