Returns an array of strings that are associated with a given preference key. If no preference values are associated with the key, or the backing preference store is not available, it returns the specified default value.
This function produces an error if the given key has a null value.
portalLib.getPreferenceValues(
key STRING in,
defaultValue STRING[] in)
returns (value STRING[])
preference String?;
preference = portalLib.getPreferenceValues("username", null);