+ Start a Discussion
mohit Srivastavamohit Srivastava 

Object type

I want to get the object name and object type (custom/standard) by schema.get describe .how i achieve this functionality
Abhishek BansalAbhishek Bansal

Hi Mohit,

Please use below Syntax :

For getting Name :
Result :
It will return the API Name

For Getting Standard or Custom Object :
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.

Abhishek Bansal.