2 votes

List index out of bounds: 0 in IF condition

This behavior is just how lists work in Apex. If you do not know an index is in the list, and you try to retrieve it, you get this type of error. You must first check the list is not empty to use a 0 ...
Adrian Larson's user avatar
  • 148k
1 vote
Accepted

Updated triggering record with value from related record

Pull the name in by its parts rather than using the 'full name'. Create a formula in the Flow that pulls in User FirstName and LastName (User.FirstName &" " & User.LastName or ...
Adam Vatterott's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible