Help

IF statement returning record as string and not as a link

1710 4
cancel
Showing results for 
Search instead for 
Did you mean: 
Taj_Deluria
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi all–

So I’m using

`IF({END DATE},BLANK(),Assignee)’

The Assignee is a column on this table that contains a link to a record from a table for personnel data. However, when it displays the data, it displays the name of the assignee as a string, rather than as a link. Is there any way to make it display as a link to the record of the person from the personnel table?

THANKS JEREMY for leading me here.

*Taj

4 Replies 4
AlliAlosa
10 - Mercury
10 - Mercury

Unfortunately, there’s no way to return a linked record field using a formula; it will always be a string.

It’s not a great solution, but you could encode an actual URL that links to the Assignee table by using lookups to get the corresponding record ID. Add a formula field to the Assignee table with the formula:

RECORD_ID()

Let’s say you call it {Assignee Record ID}, then, use a lookup field to pull {Assignee Record ID} to your current table, and use a formula like this…

IF({END DATE}, BLANK(), "https://airtable.com/tableidhere/" & {Assignee Record ID})

Replace “tableidhere” with the table ID from the Assignee table.

If you don’t know how to find the table ID, go to any record on the Assignee table, right click and choose “Copy Record URL”, then paste it somewhere. The table id will start with “tbl”. You may also have particular views set-up, in which case you can use the view ID in your formula as well (that will start with “viw”).

All of that being said; depending on your use case this might not be helpful. The URL will only work for those who have access to the base. If you’re sharing the base with outside users, you’d need to work in the shared link to your formula.

BillFrench
7 - App Architect
7 - App Architect

Two observations…

  • Table IDs should be accessible through functions.
  • Table IDs should be accessible through the API.

One might also make a good case for programmatic access to base IDs as well.

Agreed! This would be a nice feature to have!

Awesome. It works! ❤️