I have a table in AirTable.
I would like to display a random record from this table in my app.
How can I do that?
I’m not familiar with AirTable, so I don’t know if there’s an endpoint that allows you to do that directly.
But on Composer side if you have the records in a List, you can select to show a random one through a Formula:
PICK_ITEM(data.myData, RANDOM_INTEGER_BETWEEN(0, COUNT(data.myData) - 1))
If you have the IDs of the records available to you in Composer (and can fetch a record from AirTable based on ID), you can use the same Formula to find a random ID from the List and use that to fetch the record from AirTable.