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
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
Utility class to get all fields of sObjects
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
0 comments:
Post a Comment