Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi Mohit,
Please use below Syntax :For getting Name :YourObject.SObjectType.getDescribe().getName();Result : It will return the API NameFor Getting Standard or Custom Object :YourObject.SObjectType.getDescribe().isCustom();Result : It will return true if Object is CustomNote : Replace yourObejct with API name of your objectLet me know if you need more help.Thanks,Abhishek Bansal.
Hi Mohit,
Please use below Syntax :
For getting Name :
YourObject.SObjectType.getDescribe().getName();
Result : It will return the API Name
For Getting Standard or Custom Object :
YourObject.SObjectType.getDescribe().isCustom();
Result : It will return true if Object is Custom
Note : Replace yourObejct with API name of your object
Let me know if you need more help.
Thanks,
Abhishek Bansal.