rbf_getPicklist()

Purpose

Returns items available for selected picklist field (including radio buttons and groups of check box fields) as a JSON array. Each array entry has the elements name, id, and code. For fields that allow values in multiple languages, pass a JSON object specifying which language's values to return in the options parameter. If the values are not available in the request language, it will return the values for the tenant's base language. If the specified language is not configured for the tenant, it will throw an error.

Syntax

rbf_getPicklist(objName, fieldName, mainValueId, callback, options)

Parameters

objName

The object integration name.

fieldName

The field integration name.

mainValueId

The ID of the main picklist item (optional, for dependent picklists only).

callback

The callback function that will receive a JSON array of picklist items as its first parameter.

options

An optional JSON object that sets the values of optional arguments. Currently this is only used for setting langCode to a valid two-letter ISO language code, for example, {"langCode":"es"}.

Note: This API is supported in portals as well.