Salesforce Fact #526 | Collection read-only error

Trigger context variables are read-only. If you try to add/remove values from the collections, it will throw the below error:

System.FinalException: Collection Is Read-only External Entry Point.

However, clear() function can be applied on trigger.newMap and trigger.oldMap.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow