• dualfinn
  • NEWBIE
  • 10 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I am using the REST API to search for Account, Contact and Lead objects with the following query:

find {xyz*} in name fields returning
Account(Id, Name, Type limit 5),
Contact(Id, FirstName, LastName, Title limit 5),
Lead(Id, FirstName, LastName, Title, Company limit 5)
I expected that specifying "in name fields" would only search the name fields, but I am getting also Lead objects whose name does not match search term, but Company field matches.

I get the same results with API version 20.0 and 24.0. Are there some field settings that affect this or did I misunderstand the sosl query syntax?

How can I get the organization ID of a user through the REST API that's based on his user ID?

 

The following SOQL query produces "sObject type 'Organization' is not supported."

 

"select id from Organization where user_id = '{user_id}'"

 

Thanks,

Danny