Summary
When using the ExecuteSOQLQuery action in a flow, there is no option to store the output value when configuring the action. The action cannot be referenced directly by the flow either.
Steps To Reproduce:
- Install the ExecuteSOQLQuery managed package
- Create a new flow
- Drag an "Action" element to the canvas
- Search for the ExecuteSOQLQuery action
- Notice there is only an option to specify the input query. There is no option to specify the object for the SObject "records" output or subsequent flow collection variable selection.
Expected result
An option to specify the object for the SObject "records" output should appear.
Actual result
There is only an option to specify the input query
Additional information
Here is the action configuration screen for the managed package version:
I copied the source code from this repository and created a custom class called "ExecuteSOQLQueryCustom". I pasted that code, saved, and tested this version to find that the object for the output can be selected, which then lets you Manually assign variables and save the output in a flow collection of that object.
I'm thinking that the version of code in the managed package install link might be outdated? Or there is some other consideration for exposing output variables for managed packages?