So, if I search for
InvocableMethod there is a lot of documentation such as this:
And if I search for "pass record from Flow to Apex code" I see some examples like this:
But I can't find a single example that shows sending the main record from Flow to Apex. But I think this would be common?
Assume I have a Flow that is triggered on create or update for an Opportunity. So the Opportunity should be
$Record? Assume I have written an Apex class with an
InvocableMethod. It is clear, from the documentation, how to call this Apex code from the Flow, but it is not clear how I would specify that I want to pass the Opportunity record to the
InvocableMethod. Can someone explain what I need to specify in the Flow?