I get this error in output:
Bind variables only allowed in Apex code'
The query is:
"SELECT O.Id, O.Name, O.OwnerId, U.Name FROM Opportunity as O,User as U WHERE O.OwnerId = U.Id "
What's wrong with this query?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI get this error in output:
Bind variables only allowed in Apex code'
The query is:
"SELECT O.Id, O.Name, O.OwnerId, U.Name FROM Opportunity as O,User as U WHERE O.OwnerId = U.Id "
What's wrong with this query?
you could write the same SOQL in this way:
SELECT ID, Name, OwnerId, Owner.Name
From Opportunity