trigger quotepotential on Quote_Line_Item__c (after insert) {
    list<batch__c> b=[select batch_value__c 
                      from batch__c 
                      order by batch_value__c DESC LIMIT 1];
        list<Quote_Line_Item__c> quotelineitem=new list<Quote_Line_Item__c>();
        for(Quote_Line_Item__c quoteline:trigger.new){

Help me to find out get rid of this error

  • 1
    Please be more specific, where in code you get the error? – Sergej Utko Oct 10 '13 at 7:31
  • What is the error can also help – Saariko Oct 11 '13 at 5:00

In your code, b is a list, not a single sobject. Either use Batch__c b = [...] or use b[0] further in code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.