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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
after-trigger × 423trigger × 285
apex × 270
before-trigger × 61
unit-test × 22
update × 16
visual-workflow × 13
code × 9
soql × 8
workflow × 8
callout × 8
class × 8
opportunity × 8
map × 8
trigger-oldmap × 8
community × 7
failing-tests × 7
field-update × 7
helper × 7
process-builder × 6
code-coverage × 6
approval-process × 6
lead-conversion × 6
contentversion × 6
insert × 6