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;
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
add a comment |
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
add a comment |
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
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
salesforce-id
asked 10 hours ago
JamesJames
598 bronze badges
598 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
answered 10 hours ago
David Reed♦David 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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered 10 hours ago
sfdcfoxsfdcfox
278k14 gold badges226 silver badges477 bronze badges
278k14 gold badges226 silver badges477 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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