Skip to main content

I’m creating an extension here. Often times I want to send record from extension to my backend api. My backend already supports the json serialized format returned by get records api. It would be very helpful if there is a method to convert record object in blocks sdk to that format.

 

Or is there already a way for that?

Thanks

 Hey there, ​@pazhamalai! Thanks for submitting such a great question! Because your question hasn't yet received an answer/solution from the Community, we've created a Support Case on your behalf with our Airtable Expert Team to get you the quickest response possible. Please check your email for follow-up and your case reference number—and continue to follow this thread as new community members tend to share answers and add knowledgeable responses regularly. Thanks!


Hello,

There's no direct SDK method to convert an Airtable Blocks Record object into the exact JSON format returned by the Airtable Web API's get records endpoint. The Record object is a client-side representation, while the API expects a specific JSON structure with id, createdTime, and a fields object where linked records are represented by their IDs. To bridge this, you need to manually construct the API-compatible JSON by iterating through the Record's fields and extracting their values, paying special attention to how different field types (like linked records or attachments) are represented in the API's JSON versus the SDK's Record object. My KFC Experience

 

Best regards,
Elvera


Reply