function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Li LeeLi Lee 

Is there any way to get input variables information for a flow in managed package?

Hi All,

I use Salesforce API to check Flow's input variables information. In my org I install a managed package which have 2 Flows, each of them has one input variables.

I can get these Flows Metadata info by use Tooling API, but the variables in these Flow always show empty array. 
For unmanaged flow this Tooling API works corrected. I can get flow input variable information.

May I ask is there any way to get input variables information for a flow in managed package?
AnudeepAnudeep (Salesforce Developers) 
Hi Lee, 

This is intentional. Managed package code is not available to subscribers, which protects the IPR of the package authors. For managed packages, the only visibility is into publicly exposed interfaces, like global methods without implementations, global fields, or properties. 

Take a look at An Introduction to Packaging to learn more

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you