-
how to avoid this salesforce error
Database.query error getting Events! Exception: unexpected token: 'FROM'
SELECT Id,Name, geolocation__c,Location__c, geolocation__Latitude__s , geolocation__Longitude__s, Date_of_Onsite_Event__c, Local_Start_Time_of_Event__c, Local_End_Time__c,Local_End_Time_of_Event__c, Number_of_Hours_of_Event__c, End_Date_of_Onsite_Event__c, Services_to_be_Provided__c,( SELECT Id, Contact__c,Contact__r.Provider_Level__c, FROM Provider_Onsite_Event__r where Contact__r.Provider_Level__c =:'Coordinator- Level 1 ), FROM Onsite_Event__c WHERE Publish__c = 'Yes' AND Date_of_Onsite_Event__c > TODAY AND DISTANCE(geolocation__c, GEOLOCATION(13.5603,78.5036),'mi') < 100 ORDER BY DISTANCE(geolocation__c, GEOLOCATION(13.5603,78.5036),'mi') LIMIT 50
Log In to reply.
Popular Salesforce Blogs
Scenarios Every Salesforce Certified CPQ Administrator Exam Candidates Should Know About
Salesforce CPQ often seems simple at first: configure, price, quote but it’s much more than that. The Salesforce Certified CPQ Administrator certification does a great…
Create a Data Culture in Your Organization to Plan Data-Driven Strategies
For any company, data is the key to success. But for that, you need to know how exactly you could use all that data that…
Popular Salesforce Videos
Salesforce: Everything You Need to Know About Order Management
THE GOAL: Which Salesforce Order Management application is best? Well, that depends…. Salesforce offers three primary applications for order management, and they all work extremely…
Difference between Contacts and Subscribers in Salesforce Marketing Cloud
Cameron Robert from Datarati explains the difference between Contacts and Subscribers in Salesforce Marketing Cloud. What you'll learn: » The difference between a Contact and…
Automate Simple Business Processes with Process Builder | Salesforce Trailhead
In this video, we working on the Trailhead challenge Lightning Flow unit Automate Simple Business Processes with Process Builder where a lot of trailblazers face…