Getting a Unique Entity ID (SAM)