UID works perfectly fine for identifying specific instances, and in some cases is more reliable than using IID. But the process is similar. On clicked object, set variable to object.uid.
IID: Best when dealing with order - first, second, third, next to last, last ect...
UID: Best when needing to reliably identify specific instance of any object.