FavoritDebaranjan Ghosh (MM) fragte in #Salesforce Developer27. Okt. 2022, 07:42how do we assign large queries results to a collection ?In Salesforce and looping through the collection ( ie without SOQL for loops )? Please share code example 6 AntwortenSortierenNach Datum sortierenNach "Am hilfreichsten" sortierenNach Datum sortierenMehr Kommentare laden...Akzeptierte AntwortUsman Ali27. Okt. 2022, 07:50Hi @Debaranjan Ghosh You can directly assign to a list variable List<Account> accounts = [SELECT Id FROM Account];Kommentar hinzufügenAntwort schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
Akzeptierte AntwortUsman Ali27. Okt. 2022, 07:50Hi @Debaranjan Ghosh You can directly assign to a list variable List<Account> accounts = [SELECT Id FROM Account];