function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SuvraSuvra 

Generalizing Objects in Salesforce

Hi,

 

I am trying tp develop one Pagination framework along with Filtering and Sorting Utility incorporated in it. I need to make it generalized for any sObject.

 

Say, i'm using it for Product2 object andthus  one method returns List<Product2>. In another case, sObject is OpportunityProducts(some custom object) and hence, the method should return List<OpportuinityProducts>..

 

Can anyone please tell me how to achieve this?

 

 

Thanks in advance,

Suvra

Siddhesh KabeSiddhesh Kabe
Nice idea...:)