Tuesday, May 20, 2014

How to get all fields of Object using Schema.DescribeSObjectResult

We use many fields and values to populate the data in the objects, but some time we face a problem where we need to use describe the type of fields. Consider that we need all the fields of an object to be populated and if that object has more that 100 fields then it will take a lot of time to do so, we have to use data loader. But by using Apex we can do this in developer console.

Example:

No comments:

Post a Comment