Monday, September 1, 2014

How to get sobject type salesforce

How to get sobject type salesforce 

While coding generic components we may need to know the type of records(object name) that are stored in a particular list. Salesforce provides method to find out the type of data that is being stored in a list. We have to use List method getSObjectType() for this.
String objectName = string.valueof(accList.getSObjectType());





0 comments:

Post a Comment

 
| ,