Salesforce Technical Hub
Wednesday, 15 February 2017
Salesforce Apex : How to get object name from record id
Below got will get the object name based on the record id in apex.
String sObjName = myId.getSObjectType().getDescribe().getName();
In above code assign record id to myId.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment