Combine multiple objects within a list
问题 I'm looking to create a single list of records of various sObject types using apex to display to a custom visualforce page. I'm wondering if there is a way to combine multiple objects (case, opportunity, account, etc) within a single list. If not, how do you append the second object to the first in a list using visualforce code? Is there a best practice? Thanks So I could use a little more assistance completing this. I have written this: public class MyController { public List<ContactAndCase>