-
Getting Error when using map in Dynamic query:- System.QueryException: unexpected token: '(' in the SOQL query
Map<Id, Contact> mapOfIdVsContact = new Map<Id, Contact>();
for(Contact con : [Select Id from Contact])
{
mapOfIdVsContact.put(con.Id, con);
}String s = 'Select Id from Contact Where Id IN : maps.keySet()' ;
List<Contact> cont = Database.query(s);
System.debug('@@' + cont);Error:- Line: 37, Column: 1 System.QueryException: unexpected token: '('
Log In to reply.
Popular Salesforce Blogs
6 Problems that Salesforce can Solve for your Business in 2024
In today’s fast-paced business world, staying ahead means tackling challenges head-on. Salesforce, a powerful CRM platform, has transformed how companies operate, earning the trust of…
Salesforce Winter '23 Marketing Updates
Let's take a look at the marketing updates that have been introduced in the Salesforce Winter '23 release. Marketing Cloud Account Engagement (Pardot) Automate Tasks…
Popular Salesforce Videos
Integrating Salesforce Data Cloud With Other Clouds
In this extract, our speakers discussed the integration capabilities of the Salesforce Data Cloud with other clouds. Salesforce data cloud integrates with a wide range…
eShopSync for QuickBooks - A Salesforce QuickBooks Connector
One of the best Quickbooks Integration Solution With Salesforce. It efficiently sends QuickBooks data (Categories, Users, Products, and Orders) to Salesforce. For more information, please…
Heroku | Salesforce Development Course
Knowledge of Heroku is also required to crack the Salesforce PD 1 Certification Examination. Let’s understand what Heroku is and what are its uses, in…