TIP: Get row reference in one line

Hey Coda forums! I mentioned this tip briefly as a reply, but thought a dedicated post might help people find it more easily :slightly_smiling_face:

I’m sure we’ve all been there, where trying to reference specific rows through @ mentions can feel like pulling teeth when your docs grow to be giant and complicated. Or maybe you just don’t want to type an @ mention.

I stumbled upon a formula a few months ago that solves this very problem! Enter _SERIALIZE_ROW_AS_FORMULA(). This formula will pull the internal $$[] reference for the row passed as an argument. The way I tend to utilize this formula is by passing it as an argument into CopyToClipboard() inside a button. I’ll generally include this button in tables where I know I’ll be referencing specific rows multiple times across the doc, including roles tables and access tables.

Please note that this is a hidden formula. I make no guarantees that it will be supported at any point in the future. It’s simply a handy way to copy row references for now!

Try it out for yourself here!

Cap 2026-10-23 at 20.35.37

7 Likes

Nice find! I never thought of making a copy button for the row reference.

To think of it, doing this without the hidden formula also works:

Format(
  Concatenate("$", "$[row:{1}::{2}:false:false:]"),
  Split(thisRow + "", "/")
).CopyToClipboard()
5 Likes

Thanks Paul! I originally got the idea of making a copy button thru one of @Rickard_Abraham’s killer experiments. That’s THREE ways now to get a row ref!

4 Likes