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
YAYA 

Why I am not able to find by account id.

I am calling a serach method using enterprise Web Service. I am able to get the resuls correct by using city name in search parameter but not able to do with account id..

 

Working with city name

find {Jacksonville} returning " +
            "Account(id), Opportunity(AccountId), " +
            "Contact(AccountId, Primary_Contact__c, Title, FirstName, Middle_Initial__c, LastName, Birthdate, Gender__c, OtherStreet, " +
            "Other_Address_Line_2__c, OtherCity, OtherState, OtherPostalCode, County__c, Phone, MobilePhone, " +
            "Email, MailingStreet, MailingCity, MailingState, MailingPostalCode, Marital_Status__c, Spouse_First_Name__c, " +
            "Spouse_Last_Name__c, Spouse_Date_of_Birth__c, Medicare_Eligibility_Indicator__c WHERE Primary_Contact__c = true

 

But Not working:

find {001S000000C0*} returning " +
            "Account(id), Opportunity(AccountId), " +
            "Contact(AccountId, Primary_Contact__c, Title, FirstName, Middle_Initial__c, LastName, Birthdate, Gender__c, OtherStreet, " +
            "Other_Address_Line_2__c, OtherCity, OtherState, OtherPostalCode, County__c, Phone, MobilePhone, " +
            "Email, MailingStreet, MailingCity, MailingState, MailingPostalCode, Marital_Status__c, Spouse_First_Name__c, " +
            "Spouse_Last_Name__c, Spouse_Date_of_Birth__c, Medicare_Eligibility_Indicator__c WHERE Primary_Contact__c = true

 

Any help is much appreciated. thank you..

kingkong94538kingkong94538
The IDs are not in any particular sequence for any object. If you create 5 new accounts, the IDs could be very different. Some times when you create new data for any object in bulk (using Data Loader or API), it may have IDs in sequence but it's not a rule that we should rely on. So, do not use wild cards (e.g. *) on the ID when searching for something.