Record entity ID