-
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
Why Businesses Are Investing in AI Chatbot Development Services in 2026
With the increasing customer expectations and the digital interactions being the major mode of interaction, companies in 2026 are turning to the development services of…
Rev Up Your Business With Top 10 Free Apps On Salesforce AppExchange
Do you know many apps on the Salesforce AppExchange can assist in streamlining your operation and boosting your bottom line without any additional cost? Installing…
An Introduction to Lightning Web Components | Salesforce Lightning
Lightning web components are custom HTML components fabricated using HTML and standard JavaScript. Lightning web components and Aura components can coexist and interoperate on a…
Popular Salesforce Videos
5 Tips on How to Run Your Pipeline Engine to Drive Growth | Salesforce on Salesforce
Salesforce’s revenue has been on a firm upward trajectory for years, and every year we see terrific growth. How do we do it? I’ll let…
Top 3 Things to See at Dreamforce 2021 | Salesforce
Three things you definitely don't want to miss at Dreamforce this year? ? #DF21 is packed with tons of educational content about your fave Salesforce…
Salesforce For Beginners | Introduction To Salesforce | Salesforce CRM Development Tutorials
In this video, BeginIT provides an introduction to Salesforce, including its difference from legacy CRM systems. And also, BeginIT explains the procedure to create an…