Database.setSavepoint(), Database.rollback(), and Database.releaseSavepoint() not working in Flow Action
I have built an @InvocableMethod to be used as an action in a Salesforce Flow. It’s basic functionality is to look up some records, saves the result in a List of sObject, then make a call out and process the results. When I added the action to a flow and click the debug button to run it I get the “System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out” error.