• James JS Kenny
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Developer
  • OPL

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have created a VF with some remote objects.
I want to retrieve records from those objects with lookup fields.
But there is an error which is “Invalid criteria specified for retrieval. ValidationError [code=11, message=Data does not match any schemas from "oneOf", path=/where, schemaKey=null]".
Other fields can be queryed except for lookup.

Below is my code in VF.
var existAtt = new SObjectModel.ExistAttendee();
existAtt.retrieve({ where : {Account_vod__c: {eq: 'a0pK0000000XAYvIAO' }}}, function(err, records){
if(err) {
   alert(err.message);
}else{alert("ok");}
});

Please help me about this!
Thanks much!