Utility Class | How to get all fields for sObject record | Code to custom clone a Salesforce Object

by - 5:18 PM

While working for designing a custom clone button for Salesforce Account, I wrote a simple classes that read the id of current user page and pass on objects and fields . I thought of sharing this piece of information for the people looking for similar code base

Utility class to get all fields of sObjects 

How to Utilize this method

I use this method to parse the Salesforce Id of the Account, this method can be used in multiple capacities to pull any field you need for the implementation

In the code below, I am looking for Id of the page and using this Id to create a custom clone account

Happy Coding

You May Also Like