Determine Object Type Based on Record ID Prefix
Summary Standard and Custom Objects in Salesforce have three character prefixes which form the first part of the Record ID. For example, a User record with ID 00561000000Mjya has the prefix 005, which is the prefix for the User Object. For a list of Standard Field Record ID prefixes, please see Standard Field Record ID Prefix Decoder. In …