List Organization Variables by Name
Jesse Hildebrand
Currently organization variables can only be searched for based on the organization or the value but not the name of the variable.
This would be helpful for grabbing a specific organization variable from all organizations rather than having to iterate through a list of orgs for that specific variable and compile the list.
Log In
Chris Williamson
There is a workaround for this which I've used extensively - if you use List Organization Variables without specifying an org, it will list all visible org variables, and then you can use list comprehension to filter based on the variable name you want. (Something like this:)
[
orgvar
for orgvar in RESULT.result
if orgvar.name == "my_org_var_name"
]