-
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
What is Salesforce Managed Services? Why Business Using Salesforce CRM Needs Salesforce Managed Services?
Salesforce is the global leader in the CRM industry for more than a decade. Salesforce is the world's first online & real-time CRM. It allows…
Selecting the Best Salesforce Partner: A Guide to Business Growth
One of the greatest strengths of a Salesforce Customer Relationship Management (CRM) system is its ability to be customized to meet the specific needs of…
Reinforcing Fintech Companies, Salesforce Extends Einstein Analytics For Financial Services Cloud!
There has been a rapid change in the banking and wealth management industry, lately. Several modern fintech competitors have stepped in to simplify the ways…
Popular Salesforce Videos
PASS Salesforce Certified Administrator Exam on the FIRST Attempt
Want to pass the Salesforce Certified Administrator Exam on the FIRST Attempt? Then this video is for you. Here are the steps: STEP 1 :…
When to Use Apex? | Flows of Action in Apex | Learn Salesforce Development
In this Video Shrey explained When to use Apex and Flows of Action in APEX. Let's Learn the End User and Developer action (Flows of…
Before Delete Trigger in Salesforce Flows - Winter '21 update
In this video, I'm talking about one of the new features of the Salesforce Winter '21 flow builder i.e is before delete trigger. Watch and…