We are sending emails to opportunity's primary contact using Journey Builder. So when a new opportunity is created and the stage is 'stg1', the primary contact is injected in the journey.
In reality, there could be multiple opportunities associated with a Contact, so I want to pick up the opportunity which was just created (which got injected in the journey).
How do I find that most recent opportunity using AMPScript? I am using RetrieveSalesforceObjects() on Opportunity and using other fields from the object also