Skip to content

Instantly share code, notes, and snippets.

@on2air
Last active April 27, 2020 15:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save on2air/7be08c3a5881df141f13f380dde7e444 to your computer and use it in GitHub Desktop.
Save on2air/7be08c3a5881df141f13f380dde7e444 to your computer and use it in GitHub Desktop.
Create fully formatted links in Airtable
@LucaWRGF
Copy link

LucaWRGF commented Apr 13, 2020

Hello,

First of all, thanks for this code !

Maybe adding "if (link) { ... }" helps to avoid an output like this, having a label with no link : "[ label ] ( )"
This is in case not every records have a link of course

if(link) { let existing = record.getCellValueAsString(output) if(existing)refreshed++ let text =${label}let data = {} data[output] = text updates.push({id:record.id,fields:data}) }

Cheers

@on2air
Copy link
Author

on2air commented Apr 13, 2020

Thanks @LucaWRGF - good idea . I've updated code to reflect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment