+ Start a Discussion

Generalizing Objects in Salesforce



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,


Siddhesh KabeSiddhesh Kabe
Nice idea...:)