I created a flow that captures the 'Duration' spent in each Opportunity Stage. When I run the flow I am getting the following error: System.LimitException: Too many SOQL queries: 101. I know it is related to hitting a SOQL query limit- but am not sure where my Flow is causing this.
Here is a brief overview:
Triggered on 'Opportunity' object -> I get the field values for the record that triggered the Flow to run -> Decision tree checks the Opportunity for which Stage is 'Prior' and which Stage is 'Current'. Then I update the Record.
Here is more detailed Nodes:
Trigger:
Get records:
Decision:
Update records: