Reference
List index out of bounds Exception in Salesforce
49K views
·
Jun 16, 2022
Visit Channel:infallibletechie.com
To avoid the System.ListException: List index out of bounds Exception in Salesforce, make sure the size of the list is checked before fetching list values using the index.
For example, if you are trying to fetch list variable's second index values, make sure the size of the list is greater than or equal to 3.
Note:
Index starts from 0 and not from 1.
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text