is it possible to get a flow name that invoked the invocable method in Apex?

Basically, I want to implement the getFlowName method that dynamically returns a flow name that invoked this method.

global static void myMethod(List<InvocableLog> logs) {
    String flowName = getFlowName();

I looked into the Flow.Interview class and didn't find anything.
Setting an invocable variable won't be accepted.

I guess it's not possible, so asking for confirmation or any ideas.



No, it's not possible. The only data that's passed in is whatever you set in your invocablevariable properties.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.