-
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
Unlocking Excellence: The Benefits of Hiring Dedicated iOS Programmers
In the rapidly evolving world of mobile app development, having a dedicated iOS programmer can make a substantial difference in the success of your projects.…
How Salesforce Mobile App Can Help Your Business?
The traffic on the internet has been constantly shifting from desktops to mobile phones, and approximately 70% of active users on the internet are from…
4 Best Salesforce Sales Cloud Features to Boost Revenue and Business
The newest enhancements to Salesforce's Sales Cloud and Revenue Cloud, which concentrate on revenue intelligence, sales enablement, and subscription organization, have been made public. At…
Popular Salesforce Videos
Why Should You Attend Dreamforce To You 2020
Dreamforce - The event which brings together the entire Salesforce community is just around the corner. Learn why there’s so much hype around this mega…
Salesforce Administrator and Developer Training | Salesforce Training Videos
This Salesforce Training video is a demo of how the live online instructor-led classes take place after you enroll for the Online Classroom. All training…
How To Start a Salesforce Career | Video Tutorial
In this episode of the TechTual Talk, our lovely guest Rachel joins us, and we discuss how to start a Salesforce career. 00:00:00 Start 00:09:00…