NSOA.context.getAllTerms()
Use this function to get an Associative Array of all the terminology identifiers and values set for the account.
See Script Terminology.
Parameters
-
(none)
Returns
-
An Associative Array of all the terminology identifiers and values for the account.
Units Limit
-
10 units
For more information, see Scripting Governance.
Since
-
April 18, 2015
Example
-
This example creates a local variable called allTerms with an Associative Array of all the terminology and values for the account. It then uses a for in loop to log each term and current value.
// Get all the terminology available for the script var allTerms = NSOA.context.getAllTerms(); // Loop through all the terminology for (var key in allTerms) { NSOA.meta.alert(key + ' has value ' + allTerms[key]); }
See NSOA.context.parseTerminology(message) and NSOA.context.getTerm(termid).
See also Accessing Terminology.