Airtable Cobuilder is here! Learn more about our new no-code app creation feature, powered by AI on the Airtable Academy

Get expiring attachment URL!

1257 0
Showing results for 
Search instead for 
Did you mean: 
7 - App Architect
7 - App Architect

In order to assist a community member in accessing expiring URLs for their attachments, I've developed a new extension! Now, you can effortlessly retrieve the URLs of your attachments with just a click.

Just a heads up, the Airtable makes the URLs expire for security reasons. As a result, the provided URL will only remain active for ~2 hours. Please make a note of this while using the extension.

Get URL.gif

And here is the code to paste into your script extension!



const settings = input.config({
    title: "Get temporary attachment URL",
    items: [
        input.config.table("table", { label: "Table" }),
        input.config.field("attachmentField", { parentTable: "table", label: "Attachments field" }),
        input.config.field("temporaryAttachmentURLsField", { parentTable: "table", label: "Field to put URLs" }),

let { table, attachmentField, temporaryAttachmentURLsField } = settings;

if(attachmentField.type !== "multipleAttachments") {
    throw new Error("Attachments field must be an 'Attachments' type field");

if(!["singleLineText", "multilineText"].includes(temporaryAttachmentURLsField.type)) {
    throw new Error("Field to put URLs must be a single line or long text field");

const record = await input.recordAsync("Pick a record", table);
const attachmentsData = record.getCellValue(;

    throw new Error("No attachments found for this record");

let attachmentURLs = => attachment.url).join("\n\n");

await table.updateRecordAsync(, {
    []: attachmentURLs



0 Replies 0