I wonder what should be the recommended best practice regarding object searching.
I have noticed that in case I have more than 1 Salesforce environment (I.E Production & Sandbox) all the objects have the same ID.
Now my APEX code needs to find specific account - I can search it by its name or seems like I can use the ID..
Usually I would rather avoid using the same ID between environment - but using name, well, has risks as well.
So, can I use the ID field, I need to be sure it will always be equal for all the environments.. ?