Scoped GlideSPScriptable - getFields(GlideRecord gr, String fieldNames)

Checks the specified list of field names, and returns an array of valid field names.

Table 1. Parameters
Name Type Description
gr GlideRecord The GlideRecord to check
field Names String A comma separated list of field names.
Table 2. Returns
Type Description
Array An array of valid fields.