You need to sign in to do that
Don't have an account?
someone
Cast List<Case> to List<Object>
I have a search function that should query for a List<Cases>, and then a List<Opportunities>, then merge both collections and return the final list as a JSON serialized string. Apex SOQL does not allow me to query for a List<Object> to make the lists more generic before merging them. How can I get around this? Should I handle both lists individually, then merge them after they been serialized to string?
Collection store exception adding all LIST<Opportunity> to LIST<Case>
then act on your object list