Aug 12, 2019 01:06 AM
Is there a way to create your own blocks? I’d love to program my own, if possible.
Aug 12, 2019 08:14 AM
I’m not completely versed in the way that 3rd-party developers are able to establish a relationship with Airtable to create and make available custom blocks. However, the Embed block does provide a way to integrate web apps into a block container a framed service. I consider this a proxy-block, not an actual block in the true sense of the definition.
As far as I can see, there are two ways to create custom proxy-blocks:
I have created custom blocks using method #1 where a web UI provides a cross-base unified search engine that calls into a back-end service that has indexed all bases into ElasticSearch. I have not tried the approach using the JavaScript SDK.
This is a good opportunity to lobby Airtable developers to consider opening the blocks framework to allow anyone to create and deploy custom blocks that install into Airtable seamlessly. It would be a wise move if they allowed this because no company can ever match the energy and innovation of a market of passionate users who want to make Airtable better.
Mar 17, 2020 08:45 AM
@Bill.French Has anything come from this desire - I’d like to know if Airtable plans to open up the ability of Devs to create 1st class Blocks on their platform.
So far my experience with coding has been to run into problem after problem. My lack of JS knowledge is part of the big picture. But hey - that’s why I want 1st class citizens of Blocks. My current stumble is the setTimeout() method is not found in the Airtable scripting block. So I cannot create a pause method to time my 3rd party API calls to their restrictions (5 calls / min.)
Mar 17, 2020 08:56 AM
Good news - it’s been opened to requesting developers now.
In non-blocking architectures, there is no such thing as timeout’s per se, but this is the answer. That code works fine.
Mar 17, 2020 10:21 AM
Thanks for the help.
This is getting deeper and deeper…
I tried your code in my Script - it fails with an error
ReferenceError: Can’t find variable: window
So it’s not working for me. Then I tried in a brand new script with no outer code and it runs & works.
So… hmmm …
Mar 17, 2020 10:28 AM
Opps! I found my call to print out window I put in lastnight. OK
Today it’s running… now…
I had same/similar code failing last night…
Thanks for your help! I’m stumped as to why - but it’s working now!