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
SadminSadmin 

Search in a list

Hi,


I have a list to store a list of records.I wanted to display the records with name starts with A.

Is it possible?If so how can i do it?


Thanks

micwamicwa
To get all records where the name starts with A you can use that kind of query:
Code:
List<RecordName> myList = [Select o.Name,.... from RecordName o where o.Name like 'A%'];