• kumar.apr10
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,
I am getting unexpected toke '<' error in Row 1 column 5 position in open execute anonymous windows when I am trying to execute the below code

list<apex_invoice__c> listinv = new list<apex_invoice__c>;
listinv = [select name, id, apex_customer__r.name  from apex_invoice__c];
for(apex_invoice__c objinv: listinv)
{
    system.debug('name is: ' + objinv.apex_customer__r.name);
}

I am not sure what exactly  the issue is. Can you please help me to correct the code?

Thanks,
Praveen
How can a developer determine if a code is executed in a trigger context or not
Where can a system administrator assign a page layout
A. Role
B. Profile
C. App
D. Record Type
Hi,
I am getting unexpected toke '<' error in Row 1 column 5 position in open execute anonymous windows when I am trying to execute the below code

list<apex_invoice__c> listinv = new list<apex_invoice__c>;
listinv = [select name, id, apex_customer__r.name  from apex_invoice__c];
for(apex_invoice__c objinv: listinv)
{
    system.debug('name is: ' + objinv.apex_customer__r.name);
}

I am not sure what exactly  the issue is. Can you please help me to correct the code?

Thanks,
Praveen