-
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

Rising Significance of Salesforce Admin Certification in 2023
Are you looking for an instrument that can help you out in your career success? Or are you searching for an instrument that matches your…

How to Choose the Best Salesforce Consulting Services for your Business?
Today, Salesforce has become an obvious choice for most businesses looking to implement CRM systems. It is used by thousands of companies worldwide. Salesforce helps…

9 Reasons Why Salesforce Is The Best CRM In 2021
Well, owing to the bulky data back in the past, there was a need for cloud computing. Additionally, the list of customer concerns, supporting them…
Popular Salesforce Videos
Launch of Virtual Sales Tools | Salesforce 360: New Features
Salesforce has announced new Sales Cloud and supporting features to make virtual sales experiences more engaging and productive. In a nutshell, Salesforce is releasing 4…
Salesforce - The Ultimate Career Booster | Salesforce Tutorials For Beginners
This Salesforce Training Webinar will help you understand how Salesforce is the ultimate career booster for IT, Sales and Marketing. You will learn the Roadmap…
Salesforce Field Service: Complex Work and Routing | AblyPro Webinar
Salesforce Field Service is a powerful tool designed to help businesses manage complex field service workflows and optimize their routing processes. With Salesforce Field Service,…