mitchspano/apex-trigger-actions-framework

TAF Flows don't update fields when FLS is not granted for the running user

Closed this issue · 0 comments

When using the Trigger Actions Framework and launching a Flow, if the running user does not have FLS enabled for a given field which is mutated during the flow, the updates won't persist. This is in contrast to how record triggered flows operate.

The root cause of this is the getEditableFields method within the TriggerActionFlow class. From the documentation, it looks like isUpdatable() isn't exactly what we are looking for:

isUpdateable()
Returns true if the field can be edited by the current user, or child records in a master-detail relationship field on a custom object can be reparented to different parent records; false otherwise.