You need to sign in to do that
Don't have an account?

Rest API - SOQL Query : Want to get Only Current user's Record
Rest API - SOQL Query :
When I Query i am able to get all user's record instead of mine only. Is there any way to filter for get records of current user only.
When I Query i am able to get all user's record instead of mine only. Is there any way to filter for get records of current user only.
While doing authentication with salesforce ,you would be getting user details in response.
Use "user_id":"00550000001fg5OAAQ", userId in SOQL as below. Let us know if it helps.
All Answers
Could you paste your SOQL query here ?
Filter SOQl by by OwnerId = UserInfo.getUsetId().
Let us know if it helps.
Visual Froce or Apex is supprot "UserInfo.getUsetId()". Direct SOQL Query call is not support.
I m sending Query to Sales force via rest api.
While doing authentication with salesforce ,you would be getting user details in response.
Use "user_id":"00550000001fg5OAAQ", userId in SOQL as below. Let us know if it helps.