Salesforce Fact #414 | Error while populating autonum fields

If we try to populate the value of an auto-number field by mistake during record insert/update from apex, we get the error 'the field is not writeable'.

But do you know in case of record-triggered flow, we get a different error message: 'Invalid target field for field update'.

Attached are the screenshots.






Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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