We are creating records in our organization by making Composite Requests through the REST API. For the most part, things are working as intended.
However, none of our Before-Save (Fast Field Update) record-triggered Flows are being run on the newly created records. Those Flows are being run as expected when we create a record through the user interface, but not through our REST calls.
The Salesforce Platform - Order of Execution Overview seems to suggest that they should be running. Attempts to find any authoritative answer within the Salesforce documentation have not been successful.
If we make a POST
REST API call using a CompositeRequest
to create records, should we expect the Before-Save Flows to run for each created record? If so, what might be causing them not to run? If not, is there any way to make them run?
Edit #1: This is the Flow's Start
When a Rental Agreement
is created or update, and one of two fields has changed, then we want this Flow to be run. (The flow then copies some values from the related Freight_Rate__c
into fields on the Rental_Agreement__c
itself.
When Rental_Agreements__c
is created from the Salesforce UI, it works as expected. When created from a Composite REST API call, the Rental_Agreement__c
is created, but this Flow is not run. (Or if it is run, we're not seeing the output as we do when run from the UI.)