rbv_api.setFlagged()

Purpose

Sets the flagged attribute for a specified record and user. This method only works with native Platform objects.

Syntax

rbv_api.setFlagged(objName, Id, userId, isFlagged)

Parameters

objName

Integration name of object

Id

ID of record

userId

ID of the user who might have flagged the record

isFlagged

true or false

Return value

None

Example

Flags the Case record for the current user.

rbv_api.setFlagged("Case", {!id}, {!#CURR_USER.id}, true);