Apex Lists: Master List Manipulation - Part 2 | Apex Collections - Salesforce Apex Tutorial Part 9

Опубликовано: 01 Апрель 2025
на канале: SFDC Stop
234
6

Hello Trailblazers, Unravel the power of Apex Lists in this video! Learn the ins and outs of creating, manipulating, and optimizing lists in your Salesforce code.

In this video, you'll discover how to:

1. Check if a list is empty
2. Create lists using array notation
3. Access and modify list elements
4. Handle out-of-bounds errors
5. Populate values in a list at the time of initialization

Whether you're a beginner or looking to solidify your Apex skills, this video is for you!

Chapters:
0:00 Introduction
0:15 isEmpty() in apex list
2:39 What is an array in apex?
3:59 Difference between array and list
4:28 Defining list using array notation
6:35 Adding element at an index which doesn't exist in the list - List index out of bounds error
7:24 Resolving the list index out of bounds error using add()
9:12 Other ways to initialize list using array notation
11:05 Populating values inside a list at the time of initialization
12:53 Wrapping Up

Resources:
1. Code Snippet: https://www.sfdcstop.com/2024/08/coll...
2. Salesforce Documentation on Apex Lists: https://developer.salesforce.com/docs...

Other Playlists:
1. Apex Data Structures Tutorial:    • Apex Data Structures Tutorial  
2. Salesforce LWC Tutorial Series:    • Salesforce Lightning Web Component (L...