I've created an invocable apex action to be used in the flow builder. When the flow runs, is there a way for me to get the flow interview id in my invocable apex method?
I don't want the user to pass it as a parameter to the invocable action
I've created an invocable apex action to be used in the flow builder. When the flow runs, is there a way for me to get the flow interview id in my invocable apex method?
I don't want the user to pass it as a parameter to the invocable action
Invocable apex actions can be called from not just flows, they can, for example, be called from the Actions REST API
Thus, the flow interview Id would not be available as "context"
Invocable actions should have a defined signature and not assume where they are called from
In general, they should be bulkified and if intended only for screen flows, have error checks to throw exceptions if called with more than 1 request.