I'm going crazy with this flow.
I have a Custom Object named Ri_Event__c with a lookup field to the Opportunity Object. Ri_Event__c also has a custom checkbox field named Completed__c.
I'm trying to create a flow that changes the Opportunity StageName to Closed Won when all the related Ri Events are marked as completed.
The flow is being executed after insert:
After getting the records and storing them in a Collection Variable called RiEventsCollection I'm looping them , checking if the Completed__c field equals true and then I would finally update the related Opp.
I have created an Opp with 3 related Ri Events to it. Two of them are already completed and the third one I'm updating it from the flow debugger to be checked.
This is the result of the debug:
I've tried MANY ways of doing this flow. First I tried retriving the related Opp of the Ri event triggering the flow, them from the related Opp the related Ri Events for THAT Opportunity but it wouldn't let me. So I tried getting the related Ri events from the related Opportunity from the Event triggering the flow, but it wasn't working as expected too.