0

I have a screen flow in Salesforce. I saved this flow as a New Flow and changed the type to "Autolaunched Flow (No Trigger)". But this flow has many Apex Actions and for every Apex Action, I have the following error:

my_apex_action (Action) - The process type 'Autolaunched Flow' only supports 'CurrentTransaction' in 'FlowTransactionModel'

It won't let me save this flow with this error. How can I resolve this issue?

3
  • Welcome to SFSE! Please edit your question and add a screenshot of your flow. When you have a chance, read How to Ask and take the tour.
    – identigral
    Jun 7, 2023 at 18:20
  • check the flow's version
    – cropredy
    Jun 7, 2023 at 18:34
  • @identigral my question doesn't need a screenshot.
    – ViqMontana
    Jun 8, 2023 at 8:16

1 Answer 1

2

I went down this rabbit hole too. Found that the FlowTransactionModel is part of how the Flow is structured: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm Two ways to get at this. I first went about retrieving the flow via VS Code and saw I could edit the transaction model through the .flow-meta.xml file. enter image description here

Following that I got around to poking in the Advanced controls of the individual actions. Found it! Looks like option 1 is Automatic, option 2 is NewTransaction, and option 3 (our desired here) is CurrentTransaction. Oddly, it took around 10 seconds on my end for this portion of Advanced to load. But it's there! enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .