GetFieldTranslations()
Summary
Gets a list of codes and values for a coded field.
Changes
Added to Version 5.0.
Syntax
translations = GetFieldTranslations(string field_spec)
| Argument | Contents |
|---|---|
| field_spec | A field spec |
Returns
An array of subarrays, each with a code/value pair.
Notes
-
If the field is not a coded field, GetFieldTranslations() returns null.
Example
translations = GetFieldTranslations("SalesRep.JobTitle")
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The input field specification is ambiguous |
| NotFound | The input field does not exist |