Website Integration: TODO
1. Allow callouts in Flow Handlers
Flow Setting - allow to set two flows
Callout Flow
DML Flow (existing Flow_API_Name__c)
The handler show run two flows (if provided) and pass the same inputs. The output variables of Callout Flow will go as inputs to DML Flow.
The reason of this update is SF Transaction Management mechanism. It doesn’t allow to make a callout after DML, it also doesn’t allow to make a callout after the Transaction Save Point creation that is required to rollback the updates if any failure.
Possible scenario:
Stripe sends a Webhook to Salesforce. The webhook has id of related Stripe entity that is not a part of the webhook payload. The Callout Flow will perform the retrieval of the Stripe Entity using Apex Invocable and will pass the result as output flow variable. This Variable comes to DML from as input var.