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

SOSL Query not searching in 5 year older records
I have created a dynamic SOSL Query for existing SOQL query.But I am not getting all the records which I am getting
form SOQL query.
When I compared the records which are missing from the SOSL then I found that those missing records where Created 5 Years ago from now.
So can this be the reason for not showing the records in SOSL?
I am new to SOSL.Please guide me.
form SOQL query.
When I compared the records which are missing from the SOSL then I found that those missing records where Created 5 Years ago from now.
So can this be the reason for not showing the records in SOSL?
I am new to SOSL.Please guide me.
If you add ALL ROWS at the end of a SOQL query, archived and deleted records will be included in the results.
Here's an example below of query returning ALL tasks:
1SELECT Id FROM Task ALL ROWS
As you can probably imagine, pulling all deleted and archived records into the results could a be hard to manage...so using the "IsDeleted" and "IsArchived" after the "WHERE" clause can help filter the results:
1SELECT Id FROM Task ALL ROWS WHERE IsDeleted = false AND IsArchived = fals