I have a table with an audio preview attachment as a field and I am trying to use the scripting block to get this field for a record. I can display the URL for a giving record with the code below but I am wondering if there is a way to be able to preview it from the scripting block, maybe with an audio player even? Any help would be greatly appreciated!
let table = base.getTable('Music Collaborations');
let view = await input.viewAsync('Sort By', table);
if (view.name == 'All Songs')
{
let query = await table.selectRecordsAsync();
output.text('All Songs Selected');
}else if (view.name == '5 Star Songs')
{
let query = await view.selectRecordsAsync();
output.inspect(query.records.length);
output.table(query.records[3].getCellValue('Audio Preview'));
}