I am wanting the flow to select the opportunity with latest creation date from all related opportunities on the account.
I am struggling to define the Condition Requirements of the flow
This is the solution in APEX from this post, if there a way to modify this to work in flow?
Opportunity latestOpportunity = [SELECT Id FROM Opportunity WHERE AccountId = :myAccountVariable ORDER BY CreatedDate DESC LIMIT 1];
I have tried a flow with Configure Trigger: A record is created to check a checkbox. I am running into trouble with maintaining this checkbox only on the most recent opp as it will also need to uncheck when a new opportunity is created.
5/30/24 Update to original post to troubleshoot flow
Flow should work only on one opportunity record type
I want it to check a checkbox on the most recent opportunity