How to get current LinkKey value in document

Assuming Someone access my document by https://public.getgrist.com/XXXX/XXXX/p/1?UUID_=123456

I try to make UUID Stamps to log row create/update by UUID(123456) using user.LinkKey.UUID but failed, it seems only worked in Access Rules Page.
Just wanna know is there anyway to get current LinkKey (UUID) in document?

Hi! I think it’s possible to do what you are asking, if I understand you correctly.

You can use LinkKeys in formulas as long as they are Trigger Formulas. In a Trigger Formula, you can use user.LinkKey.UUID, and it would have the value from the UUID_ URL parameter.

Screen Shot 2022-10-23 at 12.16.24 PM

As with any Trigger Formula, you’ll need to specify when it should trigger (e.g. only for new records, or also on certain change in existing records).

Also, in case you haven’t seen it, we have this article describing an application of UUIDs together with LinkKeys: