Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
What you have done is declared a list of Offer__c but your are trying to add list rather than the object(offer__c).
You need to use something like below, if you want to add list to a list
List<List<Offer__c>> lstOffer.addall
What you have done is declared a list of Offer__c but your are trying to add list rather than the object(offer__c).
You need to use something like below, if you want to add list to a list
List<List<Offer__c>> lstOffer.
What you have done is declared a list of Offer__c but your are trying to add list rather than the object(offer__c).
You need to use something like below, if you want to add list to a list
What you have done is declared a list of Offer__c but your are trying to add list rather than the object(offer__c).
You need to use something like below, if you want to add list to a list