Created
September 25, 2018 12:04
-
-
Save SalesforceBobLightning/5829dfa2d94708c7e44711cb8660e232 to your computer and use it in GitHub Desktop.
Get SObject type from Record Id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String getSObjectTypeById(Id recordId) { | |
| return recordId.getSobjectType().getDescribe().getName(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment