-
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
Detailed Guide to Implement Salesforce Multi-Factor Authentication (MFA)
Plan To Implement MFA Configuring Permission Set in Salesforce Login in to your Salesforce account On the setup page, search “Permission Set” Click the “New”…
Salesforce Stripe Payment Processing
In today’s fast-paced digital world, businesses of all sizes constantly seek ways to provide a seamless customer experience. One crucial aspect of this experience is…
E-Commerce: 5 Automation Examples to Help You Get Started
It's hard to imagine running an online store the old-fashioned manual way. First of all, because it wouldn't allow growth. The more orders, the more…
Popular Salesforce Videos
Salesforce Security Review | Tutorial Video
If you ever wanted to publish an app, you probably know of the Salesforce security review. While dreaded by many developers, it is far from…
Salesforce Winter 21 Release - Sneak Peek
The Winter ’21 release delivers innovations across the Salesforce Customer 360 platform to help connect you to your customers, from anywhere. Fancy table updates, live…
5 Steps to Faster Case Resolution | Salesforce Support
When it comes to filling out a Salesforce case from, the description field and attached files are key to fast routing and resolution. Here are…