I'm building a flow that has many actions and the Flow editor is getting slower and slower with each action I add.
The logic has eight different scenarios and the scenario to be used is established at the top of the flow. In each scenario I need to create/or edit a SharePoint list item, edit an existing SharePoint document (properties only), and send an email. For each of these scenarios the actual values for fields and the text of the email varies. I need to decide which of the following approaches performs better, specifically in the Flow editor.
Approach A: use a SWITCH construct and for each of the eight cases use three actions to create/edit the list item, update the doc properties and send the email. The different values will be hard coded into the actions.
Approach B: use a SWITCH construct and for each of the eight cases populate variables with the values for that case. Then, following the SWITCH, use just one set of three actions to create/edit the list item, update the doc properties and send the email. The different values will be derived from the current values of the variables.
Both approaches are a lot of work. Which one will be easier on the Flow editor? I don't really care too much about the performance of the flow when it runs. If it runs a few seconds longer or not does not really matter, but staring at an unresponsive Flow editor for half my work day is unacceptable.
What are your insights? Any better ideas?