Is there a way to tell what object an 18 digit ID refers to?Check if a .txt file of IDs all exist in SalesforceUploading to Custom Object then Matching Contact Object?Query regarding trigger?Is there any reason to log old IDs?Can I configure Salesforce to always use 18-character IDs, or always use 15-character IDs?additional last 3 digits of Id obtained from SOQL queryHow to get an 18 digit ID from 15 digit ID using SOQL15 and 18 digit in force.com databaseWhy would the 18 digit ID of an object change query?Bulk export opportunities related to multiple contacts

MQTT subscription topic match

Was Willow's first magic display (blazing arrow through arm) actual magic, and if not, what's the trick?

What are some symbols representing peasants/oppressed persons fighting back?

Remove cardinal direction letters

When does Fisher's "go get more data" approach make sense?

Source of story about the Vilna Gaon and immigration policy

What's the meaning of こそ in this sentence?

I won USD 50K! Now what should I do with it?

Will it hurt my career to work as a graphic designer in a startup for beauty and skin care?

Draw a line nicely around notes

Was all the fuel expended in each stage of a Saturn V launch?

Did 007 exist before James Bond?

What exactly is a Hadouken?

Project Euler, problem # 9, Pythagorean triplet

Why aren't globular clusters disk shaped

Identification of an AC transformer

Why limit to revolvers?

Is this artwork (used in a video game) real?

If I stood next to a piece of metal heated to a million degrees, but in a perfect vacuum, would I feel hot?

I do not have power to all my breakers

Why should I cook the flour first when making bechamel sauce?

Getting fresh water in the middle of hypersaline lake in the Bronze Age

Why don't commercial aircraft adopt a slightly more seaplane-like design to allow safer ditching in case of emergency?

Why doesn't philosophy have higher standards for its arguments?



Is there a way to tell what object an 18 digit ID refers to?


Check if a .txt file of IDs all exist in SalesforceUploading to Custom Object then Matching Contact Object?Query regarding trigger?Is there any reason to log old IDs?Can I configure Salesforce to always use 18-character IDs, or always use 15-character IDs?additional last 3 digits of Id obtained from SOQL queryHow to get an 18 digit ID from 15 digit ID using SOQL15 and 18 digit in force.com databaseWhy would the 18 digit ID of an object change query?Bulk export opportunities related to multiple contacts






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a huge list of 18 digit ids which either refer to a contact or an account. Is it possible to tell which is which without manually checking them all?










share|improve this question




























    1















    I have a huge list of 18 digit ids which either refer to a contact or an account. Is it possible to tell which is which without manually checking them all?










    share|improve this question
























      1












      1








      1








      I have a huge list of 18 digit ids which either refer to a contact or an account. Is it possible to tell which is which without manually checking them all?










      share|improve this question














      I have a huge list of 18 digit ids which either refer to a contact or an account. Is it possible to tell which is which without manually checking them all?







      salesforce-id






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      JamesJames

      598 bronze badges




      598 bronze badges




















          2 Answers
          2






          active

          oldest

          votes


















          2














          With just Contacts and Accounts, it's easy: if it starts with 001, it's an Account; with 003 it's a Contact.



          More generally, this is called the Key Prefix, this three-digit identifier at the head of the object Id. There are more or less comprehensive references you can find online to map prefixes to objects and vice versa, but the easiest way to go from key prefix to what it is (if it's a regular old sObject) is to just put it in your URL bar:



          YOUR_DOMAIN.my.salesforce.com/001


          It'll take you to the object home for that object.






          share|improve this answer























          • Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

            – Derek F
            10 hours ago


















          2














          With a single line of Apex, you can identify an ID's object:



          System.debug(Id.valueOf('some-record-id').getSObjectType());


          This will output a value such as "Account" or "My_Custom_Object__c".



          You can run this code by logging in to Salesforce, and choosing Developer Console, then Debug > Execute Anonymous from the menu.



          Also, I wrote a package you can use to see ALL key prefixes available in your org (open source!). I'm also working on a Lightning version of this package.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "459"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f269495%2fis-there-a-way-to-tell-what-object-an-18-digit-id-refers-to%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            With just Contacts and Accounts, it's easy: if it starts with 001, it's an Account; with 003 it's a Contact.



            More generally, this is called the Key Prefix, this three-digit identifier at the head of the object Id. There are more or less comprehensive references you can find online to map prefixes to objects and vice versa, but the easiest way to go from key prefix to what it is (if it's a regular old sObject) is to just put it in your URL bar:



            YOUR_DOMAIN.my.salesforce.com/001


            It'll take you to the object home for that object.






            share|improve this answer























            • Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

              – Derek F
              10 hours ago















            2














            With just Contacts and Accounts, it's easy: if it starts with 001, it's an Account; with 003 it's a Contact.



            More generally, this is called the Key Prefix, this three-digit identifier at the head of the object Id. There are more or less comprehensive references you can find online to map prefixes to objects and vice versa, but the easiest way to go from key prefix to what it is (if it's a regular old sObject) is to just put it in your URL bar:



            YOUR_DOMAIN.my.salesforce.com/001


            It'll take you to the object home for that object.






            share|improve this answer























            • Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

              – Derek F
              10 hours ago













            2












            2








            2







            With just Contacts and Accounts, it's easy: if it starts with 001, it's an Account; with 003 it's a Contact.



            More generally, this is called the Key Prefix, this three-digit identifier at the head of the object Id. There are more or less comprehensive references you can find online to map prefixes to objects and vice versa, but the easiest way to go from key prefix to what it is (if it's a regular old sObject) is to just put it in your URL bar:



            YOUR_DOMAIN.my.salesforce.com/001


            It'll take you to the object home for that object.






            share|improve this answer













            With just Contacts and Accounts, it's easy: if it starts with 001, it's an Account; with 003 it's a Contact.



            More generally, this is called the Key Prefix, this three-digit identifier at the head of the object Id. There are more or less comprehensive references you can find online to map prefixes to objects and vice versa, but the easiest way to go from key prefix to what it is (if it's a regular old sObject) is to just put it in your URL bar:



            YOUR_DOMAIN.my.salesforce.com/001


            It'll take you to the object home for that object.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 10 hours ago









            David ReedDavid Reed

            47.3k8 gold badges27 silver badges65 bronze badges




            47.3k8 gold badges27 silver badges65 bronze badges












            • Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

              – Derek F
              10 hours ago

















            • Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

              – Derek F
              10 hours ago
















            Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

            – Derek F
            10 hours ago





            Wasn't sure if this worked in LEX or not, so I tried it and whaddaya know, it works! Takes me to the "Recently Viewed" listview in lightning (/o/<obj name>/list?filterName=Recent) rather than the object home (/o/<obj name>/home).

            – Derek F
            10 hours ago













            2














            With a single line of Apex, you can identify an ID's object:



            System.debug(Id.valueOf('some-record-id').getSObjectType());


            This will output a value such as "Account" or "My_Custom_Object__c".



            You can run this code by logging in to Salesforce, and choosing Developer Console, then Debug > Execute Anonymous from the menu.



            Also, I wrote a package you can use to see ALL key prefixes available in your org (open source!). I'm also working on a Lightning version of this package.






            share|improve this answer



























              2














              With a single line of Apex, you can identify an ID's object:



              System.debug(Id.valueOf('some-record-id').getSObjectType());


              This will output a value such as "Account" or "My_Custom_Object__c".



              You can run this code by logging in to Salesforce, and choosing Developer Console, then Debug > Execute Anonymous from the menu.



              Also, I wrote a package you can use to see ALL key prefixes available in your org (open source!). I'm also working on a Lightning version of this package.






              share|improve this answer

























                2












                2








                2







                With a single line of Apex, you can identify an ID's object:



                System.debug(Id.valueOf('some-record-id').getSObjectType());


                This will output a value such as "Account" or "My_Custom_Object__c".



                You can run this code by logging in to Salesforce, and choosing Developer Console, then Debug > Execute Anonymous from the menu.



                Also, I wrote a package you can use to see ALL key prefixes available in your org (open source!). I'm also working on a Lightning version of this package.






                share|improve this answer













                With a single line of Apex, you can identify an ID's object:



                System.debug(Id.valueOf('some-record-id').getSObjectType());


                This will output a value such as "Account" or "My_Custom_Object__c".



                You can run this code by logging in to Salesforce, and choosing Developer Console, then Debug > Execute Anonymous from the menu.



                Also, I wrote a package you can use to see ALL key prefixes available in your org (open source!). I'm also working on a Lightning version of this package.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 10 hours ago









                sfdcfoxsfdcfox

                278k14 gold badges226 silver badges477 bronze badges




                278k14 gold badges226 silver badges477 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Salesforce Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f269495%2fis-there-a-way-to-tell-what-object-an-18-digit-id-refers-to%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її