+ 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