As @Justin_Barrett mentioned, the scripting block API does not have any functions to perform inter-base calls (like reading/writing). Depending on your skill level, Justin’s recommendation for using a Zapier/Integromat integration is probably the most user-friendly option.
However, if you are looking for something more complicated, but Scripting Block-specific, you could use the Airtable Standard API which can perform read, write, update, delete operations for any base, given you have the base ID accessible.
To flesh this idea out a little further, imagine:
- You write a scripting block in base A. Step one is passing in the base ID for base B.
- The scripting block then performs a
fetch() call to the Airtable API for “listing records” (a GET request).
- You parse the JSON response (which includes the records from base B), and using the scripting block
createRecordsAsync() pass in the response to copy the records into base A.
Again, a little more complicated because you have to use two of Airtable’s APIs, but should be able to keep all the code within the scripting block.