rbv_api.getIdByCode()

 

Purpose

Returns the ID of a status or a picklist item with the given integration code.

Syntax

rbv_api.getIdByCode (objName, fieldName, code)

Parameters

objName

Integration name for object

fieldName

Integration name of workflow status or picklist

code

Integration name of status or picklist item

Return value

ID of item or -1

Example

var itemId = rbv_api.getIdByCode("order", "type", "S",);