You need to sign in to do that
Don't have an account?
RiverChaser
SOQL Query: Different Results in Apex Code and sforce Explorer
I have some custom Apex Code that runs this query, which works beautifully:
Code:
Code:
Why can I query related data in one usage but not another?
Thanks for any insight!
Don
Code:
SELECT Id, Expiration_Date__c, Product__r.NameI'm now trying to run this same query in sforce Explorer, in preparation for doing a similar query using the Apex API from a custom application. The only change I've made is to include a string for the ContactID:
from Membership__c
WHERE Contact__r.Id = :contact.Id
AND Product__r.Name = 'Membership'
ORDER BY Expiration_Date__c DESC Limit 1
Code:
SELECT Id, Expiration_Date__c, Product__r.NameBut Explorer reports an error: "Query failed: MALFORMED_QUERY: SOQL statements can't query related data."
from Membership__c
WHERE Contact__r.Id = 'XXXXXXXXXXXXXXXXXX'
AND Product__r.Name = 'Membership'
ORDER BY Expiration_Date__c DESC Limit 1
Why can I query related data in one usage but not another?
Thanks for any insight!
Don
What is the difference between apex Explorer and sforce Explorer? Is apex the updated version?
Thanks!
Don
Cheers