-
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
Salesforce Marketing Cloud Implementation Partner in the USA
Kizzy Consulting, a trailblazing force in the Salesforce ecosystem, stands out prominently as a Salesforce Marketing Cloud Implementation Partner in the USA. With a proven…
Popular Salesforce Videos
Is The Salesforce Job Market Saturated? | The Facts
You may have heard that the Salesforce job market is saturated, however there is no evidence to indicate this, in fact it’s the exact opposite!…
What is Workflow Rule in Salesforce | Salesforce Interview Questions and Answers
What is Workflow Rule in Salesforce | Salesforce Interview Questions and Answers
Salesforce Relationship Considerations
In this video learn about the Important considerations while working with different types of Relationships in Salesforce such as Lookup Relationship, Master-Detail Relationship, Many-to-Many Relationship,…