function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mamatha MasterMamatha Master 

searching only one field through API - Urgent

Hi,
 
I want to search only Account name from accounts using sforce API.
 
But in API, the provided search function can have the ability to search in NAME FIELDS or PHONE FIELDS or EMAIL FIELDs or ALL FIELDs.
 
But i want to search only acccount name field. How can i?
 
I tried with query function but got error if i use like operator.
 
Can any one help me urgent.
 
Thanks for your help
MM
SuperfellSuperfell
use NAME FIELDS an also use a returning clause that specifies you're only interested in accounts.
Mamatha MasterMamatha Master

Hi Simon,

I want to search only in Account name. If I set it to NAME FIELDs it will search in all name fields like Account name, website etc..,

But i want to search only account name

Please help me

Thanks for your help

MM

JoanJoan
You can use returning clause to return only one field you are interesting