NSOA.context.parseTerminology(message)
Use this function to convert a string containing terminology phrases (terminology identifiers surrounded by ‘%’ characters) into a string using the correct terminology set for the account.
See Script Terminology.
Parameters
-
message {string} [required] — The message containing terminology phrases to replace with terms used in the account.
Returns
-
The passed string with all the terminology phrases replaced by the terms used in the account.
Units Limit
-
4 units
Note:Calls to NSOA.meta.log(severity, message) with the severity parameter set to “debug” or “trace” do not consume units but are limited to a maximum of 1000 per script.
For more information, see Scripting Governance.
Since
-
April 18, 2015
Example
-
This example shows what would be returned if the account terminology had redefined project to job.
var msg = NSOA.context.parseTerminology("Notes attached to %project%.") // msg = "Notes attached to job.";
See NSOA.context.getTerm(termid) and NSOA.context.getAllTerms().