• Shivani Thapar
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 17
    Replies
Eror: Compile Error: unexpected token: 'List' at line 6 column 0

@isTest
private class myClass {
static testMethod void myTest() {
FindunpaidInvoices newInst = new FindunpaidInvoices();

List invoice = newInst.getUnpaidInvoices();
public class FindunpaidInvoices {
    private final List<Invoice_Consulting__c> invoices;

    public FindunpaidInvoices() {
        invoices = [select Account__c, Invoice_Date__c, Balance_Due__c from Invoice_Consulting__c where Name = 'Unpaid'];
    }

    public List<Invoice_Consulting__c> getUnpaidInvoices() {
        return invoices;
    }
}

Help please would be good thanks
 
Hi there... 

1) I have created an apex class in my enterprise salesforce account, and I want to deploy it now to production. So I can use it on my visual force email...

How can I do that? I wouldnt need to test it would I?
 
public class FindunpaidInvoices {
    private final List<Invoice_Consulting__c> invoices;

    public FindunpaidInvoices() {
        invoices = [select Account__c, Invoice_Date__c, Balance_Due__c from Invoice_Consulting__c where Name = 'Unpaid'];
    }

    public List<Invoice_Consulting__c> getUnpaidInvoices() {
        return invoices;
    }
}
Hi all, 

How do I deploy a apex class from sandbox to production so I can use it in a visual force email? 

Thanks,
Im trying to create a apex class for all my unpaid invoices... 

anyone know why im getting this error? thanksUser-added image
Hi there, id like to create a custom controller on a visual force email template similar to this

http://www.salesforce.com/docs/developer/pages/Content/pages_email_templates_with_apex.htm

but listing unpaid invoices? anyone know how?  

Thanks for the help
Hi there, id like to... 

Create a "visual force" template, using "Quote" as the driving record. 
1) listing all my unpaid invoices 
2) show them as aging, from 0-30 days, 31 to 60, 61 to 90, 91 to 120, and 121 and older 

any help would be appreciated on how to do so... thx
Eror: Compile Error: unexpected token: 'List' at line 6 column 0

@isTest
private class myClass {
static testMethod void myTest() {
FindunpaidInvoices newInst = new FindunpaidInvoices();

List invoice = newInst.getUnpaidInvoices();
public class FindunpaidInvoices {
    private final List<Invoice_Consulting__c> invoices;

    public FindunpaidInvoices() {
        invoices = [select Account__c, Invoice_Date__c, Balance_Due__c from Invoice_Consulting__c where Name = 'Unpaid'];
    }

    public List<Invoice_Consulting__c> getUnpaidInvoices() {
        return invoices;
    }
}

Help please would be good thanks
 
Hi there... 

1) I have created an apex class in my enterprise salesforce account, and I want to deploy it now to production. So I can use it on my visual force email...

How can I do that? I wouldnt need to test it would I?
 
public class FindunpaidInvoices {
    private final List<Invoice_Consulting__c> invoices;

    public FindunpaidInvoices() {
        invoices = [select Account__c, Invoice_Date__c, Balance_Due__c from Invoice_Consulting__c where Name = 'Unpaid'];
    }

    public List<Invoice_Consulting__c> getUnpaidInvoices() {
        return invoices;
    }
}
Hi all, 

How do I deploy a apex class from sandbox to production so I can use it in a visual force email? 

Thanks,
Im trying to create a apex class for all my unpaid invoices... 

anyone know why im getting this error? thanksUser-added image
Hi there, id like to create a custom controller on a visual force email template similar to this

http://www.salesforce.com/docs/developer/pages/Content/pages_email_templates_with_apex.htm

but listing unpaid invoices? anyone know how?  

Thanks for the help
Hi there, id like to... 

Create a "visual force" template, using "Quote" as the driving record. 
1) listing all my unpaid invoices 
2) show them as aging, from 0-30 days, 31 to 60, 61 to 90, 91 to 120, and 121 and older 

any help would be appreciated on how to do so... thx