function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
OpsterOpster 

Object Type from Object ID using globalDescribe()?

I am trying to use the following code to make a map of sObject Type Names and Object Prefixes:

 

Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();

 

I am a little unsure of what comes back from the GlobalDescribe or if im setting up my map correctly.  I will need to do a get() using an object id prefix and want to get back the object type name.  Can anyone assist me in accomplishing this?

 

thanks in advance

d3developerd3developer

You can use this:

 

http://bit.ly/cEKmUU