-
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
The ABC's of Salesforce - All you Need to Know
When you’re new to Salesforce, it’s easy to get lost in the lingo. There’s just so much information to digest that it can be overwhelming…
Salesforce Data Cloud: Features, Pricing, and How It Works
Businesses today collect customer information from CRMs, websites, marketing platforms, applications, databases, and other systems. The challenge is turning this fragmented information into a reliable,…
Salesforce for Nonprofits – What Salesforce’s acquisition of Salesforce.org means for Customers
Salesforce for Nonprofits – Salesforce.com Inc. has made a rather unusual acquisition – buying its own independent philanthropic org Salesforce.org in a $300 million deal. The…
Popular Salesforce Videos
How to Deliver Great Customer Service With a Small Team [Salesforce Webinar]
Overwhelmed by a backlog of customer service requests? And worried your team is too small to handle all the requests? Then, this video is for…
Salesforce Einstein Discovery Spring 21
Einstein Discovery is AI-powered analytics that enables business users to automatically discover relevant patterns based on their data – without having to build sophisticated data…
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…