Skip to content

GeekStewie/Salesforce-Object-Prefixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Salesforce-Object-Prefixes

Within this repo is a json formatted file which contains the KeyPrefix for multiple standard Salesforce sObjects. The prefixes are the first 3 characters of IDs related to Salesforce sObjects and allow you to identify what object an ID is related to.

There are methods for achieving this within Apex, although for external apps and general quick searches this provides an alternative option for identifying Salesforce IDs.

Note: Knowledge Articles have a range of prefixes so if you are using this in an app, you will need to account for this. Here is an example of the formatting within the json for these. The hash can be any number or character.

"kA#": {
    "label": "Knowledge Article",
    "name": "KnowledgeArticle"
},
"ka#": {
    "label": "Knowledge Article Version",
    "name": "KnowledgeArticleVersion"
}

About

JSON file containing Standard Salesforce Objects with their related KeyPrefixes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published