Use case is:
Integration user does REST API call to insert an Account without a RecordTypeId:
POST /services/data/v54.0/sobjects/Account
{"Name" : "smoke-test"}
Integration User has ...
Profile =
Minimum Access - Salesforce
Permission Set
MyIntegration
- Grants create/edit/view on
Account
- Assigns recordtype
B2B
- Run Flows enabled
- Grants create/edit/view on
Before save flow coerces any Account record without RecordTypeId to the B2B recordtypeId
RESULT when API runs:
Record type missing for : Account; CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
Debug log has no entries for traced integration user - not even the before save flow.
Why is this happening?