-
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
File Upload in Lightning Web Component | Salesforce Lightning Tutorial
Users can upload many files quickly and easily with the lightning-file-upload component. Drag and drop capabilities and file type filters are also available in the…
Salesforce DX – The X Factor For Salesforce Developers
Dreamforce always comes with a box of tech surprises every year. 2016 was no exception, one of the big points of discussion was Salesforce DX.…
4 Security Mistakes to Avoid in Salesforce
76% of IT security leaders say they've experienced a data breach in at least one of their business systems. Needless to say, it’s important to follow…
Popular Salesforce Videos
What is CRM and How Does it Work? | Salesforce
What is CRM (Customer Relationship Management) and how does CRM work? Watch this video to see how CRM helps you keep track of everything about…
Salesforce Commerce Cloud Migration Key Considerations
Embarking on a Salesforce Commerce Cloud migration journey? This extract from our latest webinar outlines the key considerations and best practices to ensure a seamless…
Salesforce Sales Cloud Implementation
There are many things to take into consideration when developing and deploying a Salesforce Sales Cloud implementation that will take your business to the next…