getAttributesUsingFeatureTable method
- required String variableName,
- required FeatureTable attributeNameSource,
An array of attributes used in the script for a given profile variable.
To fully support the wildcard expansion in the Expects statement, calculation of used attributes on a profile variable requires an object that can supply a full set of attribute names.
This function represents the best attempt to find all required attributes to evaluate the script. In some cases, an ambiguous or undetermined attribute reference may render this collection incomplete. If the script has undetermined attribute references, ArcadeEvaluator.hasUndeterminedAttributeReferences returns true.
Parameters:
variableName— The name of the profile variable whose used attributes are required.attributeNameSource— A FeatureTable from which a list of all attribute names for the profile variable can be obtained.
Return Value: The task object representing the asynchronous retrieval of the attributes looked up on a profile variable in the script. The value of the task result is a List<String> object.