Is there a way to insert different sobject records with single DML in flows? I know, in apex we can achieve it by creating a List<sObject> but in case of Flows, Can this be achieved by using single DML?

I just want to make sure that instead of specifying DML multiple times , if we can achieve this thru single DML itself in case of Flows.


You can't mix record types in the same collection, so it's not possible to perform DML operations without using Apex. That said, you can create an InvocableMethod that accepts several List<sObject> variables, and you could combine the DML inside Apex, if you really wanted/needed the extra DML operations to be saved.

  • Thanks @sfdcfox! Looks like apex is the only way to go.
    – sfdc07
    Nov 29 '21 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.