rbv_api.isAPI()

Purpose

Returns true if a trigger is called from a regular Web Services API or REST.

Note: This method returns false if called outside of a trigger

Syntax

rbv_api.isAPI()

Parameters

None

N/A

Return value

true or false

Example

Checks whether the trigger was invoked through an API.

if (rbv_api.isAPI()) { rbv_api.println("Triggered through an API"); }