• Amit Aher
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Salesforce Developer
  • Dreamwares


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi All,

I have below code, when executing receiving the error

System.QueryException: unexpected token: Id

Code
global class RetrieveMedicalInquiryStatusBatchMVN implements Database.Batchable<sObject>, Database.AllowsCallouts, Database.Stateful, Schedulable {

    String query = 'SELECT Id,Account_vod__c, Status_vod__c, MA_Response_AZ__c ' +
                    // Query Closing
                    'FROM Medical_Inquiry_vod__c ' +
                    'WHERE Sent_to_GMIP_MVN__c = TRUE ' +
                    'AND Status_vod__c IN :statuses' +
                    'AND Id IN :Ids';

    List <String> statuses;
    List<String>Ids = new List<String>{'a0t1y0000005QRTAA2','a0t1y0000005QRYAA2'};

Can you please let me know how to correct them

Thanks,
Monisha

I have a requirement in which when we click the 'X' button of the browser, it should open up a warning message with 'OK' and 'Cancel' button just like 'Confirm' box. When we click 'Ok' it should close the window and when we click 'Cancel', the window should not be closed.  

 

Any help on this is highly appreciated.

 

 

Thanks.

  • August 30, 2010
  • Like
  • 0