• Michele McGeoy
  • NEWBIE
  • 15 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I'm new to Apex coding and am making some modifications to a colleagues code. 
I've added this line and am getting the error:  First SObject of the FROM statement must be a valid SObject type. at line 106 column 36  
Here is the statement:
for(NWSHOP__Bookings__c bk: [Select id,ownerId  from NWSHOP.Bookings__c where NWSHOP__Customer_Name__r.CMAX_upload__c = true and LastModifieddate >: exportSettingsObj.NWSHOP__LastExportDate__c])

NWSHOP__Bookings__c is a custom object. 
any hints on what a "valid SObject type" is?
I'm new to Apex coding and am making some modifications to a colleagues code. 
I've added this line and am getting the error:  First SObject of the FROM statement must be a valid SObject type. at line 106 column 36  
Here is the statement:
for(NWSHOP__Bookings__c bk: [Select id,ownerId  from NWSHOP.Bookings__c where NWSHOP__Customer_Name__r.CMAX_upload__c = true and LastModifieddate >: exportSettingsObj.NWSHOP__LastExportDate__c])

NWSHOP__Bookings__c is a custom object. 
any hints on what a "valid SObject type" is?