-
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
How do Salesforce consulting companies help your business grow?
Salesforce has time and again proven to be the best platform-as-a-service cloud CRM in the world. At present, Salesforce is the most widely used cloud…
Types of Salesforce Support (Customer Success) Plans You’ll See out in the Wild
Customer success is when the customers can achieve their desired business outcomes by leveraging the Salesforce platform. Providing a suitable customer success plan means providing…
Generate More Leads With Salesforce's Data.com
Salesforce.com's Sales Cloud customer relationship management (CRM) software includes a sales and lead creation component called Data.com. Through its enormous user-generated database, the Data.com platform…
Popular Salesforce Videos
Get Started with Salesforce Application Security
Let the right users in at the right time, and give them access to the right data. With the growth of a mobile and remote…
Work With Custom Lightning Components | Salesforce Tutorial
Creating a custom Lightning component requires programming skills. Or, you can install an existing Lightning component from the AppExchange. You can create a custom Lightning…
Security for Salesforce Developers: Data Security
In this series, we review the most important concepts that developers must understand to create secure applications on the Salesforce platform. We talk about data…