You need to sign in to do that
Don't have an account?
Ad_Infosys
Error in the result set when using list.
I have a query in for loop the brings records in a list.
for(task ta_id:[select whatid from task where owneradentid__c='0' ])
listtest.add(ta_id.whatid);
now this list contains 54 records. (2 unique records that are repeated)
opportunitycontactrole[] opconr=[select opportunitycontactrole.opportunity.of_pending_stips__c from opportunitycontactrole where opportunityid in : listtest];
NOw I want a result set of 54 records but opconr has only 2 records comparing to the 2 unique records in the list
How do I do this.
Thanks in advance
Yes. The result is basically 2 unique results repeated again and again to make 54 results.
Now I want other SOQL to give result for 54 results but it gives me only for 2 unique.
I cannot use for loop as this will bring my code close to governor limit of 100 SOQL