I have a record triggered flow in salesforce which performs operations of updating Reports To field in all the Employees of an Organization.
The flow is triggered whenever an Organization ReportsTo field is updated.
It fetches all the employees of that organization and assigns them the Reports To field value inside the loop and stores it into a collection.
After the last item in the loop the collection is passed to update element where the records are updated.
The organisation which is triggering the flow has more than 1000 employees which results in violation of flow governor limits causing the flow to throw an error "Number of Iterations Exceeded".
Below is the flow diagram for your reference:
Please provide a way/solution for handling the governor limits issue in the flow with suitable explanation. Thank you in advance.
