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
DeBoLoDeBoLo 

How to handle if total number of records retrieved by a single SOSL query is > 200.

in the Salesforce online help, they said that total number of records returned by the SOSL is 200. My question is, how to handle the SOSL query if it returns more than 200 records?

 

Any suggestions and ideas are appreciated.

 

Thanks,

 

Imran MohammedImran Mohammed

To avoid getting into errors, we can add Limit keyword  like LIMIT 200 in the query.

DeBoLoDeBoLo

You are right. Here i have a question, What should i do if i would like to process all the records returned by the SOSL (more than 200).

 

Thanks.

Imran MohammedImran Mohammed

SOSL query will not return more than 200 records as per the documentation.

For you reference

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_sosl_syntax.htm