• Sri Sri 11
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,
I am trying get owner name of an account like we see in UI using soql, which i will pass to rest service. I understand that there is releation between Account and User. i am trying to the following query but i am getting errors.
select+name,user.name+from+account
message: select name,user.name from account ^ ERROR at Row:1:Column:13 Didn't understand relationship 'user' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
errorCode: INVALID_FIELD
Can some one provide how to get this?