getAssignments method: ActionItem class

Syntax

getAssignments()

Description

Use the getAssignments method to obtain the action item assignments (user/role) as a collection object.

Note:

While you can specify any user ID or role, only a user or role that has also been assigned Contributor privileges on the template or instance Security page will be allowed to complete the action item. The system will not validate your selection against the users or roles defined on the Security page.

Parameters

None.

Returns

A PTAI_COLLECTION:Collection object containing user or role assignments data for the action item.

Example

import PTAI_ACTION_ITEMS:ActionItem;
import PTAI_COLLECTION:Collection;

Local PTAI_ACTION_ITEMS:ActionItem &item;
Local PTAI_COLLECTION:Collection &oAssignmentColl = create PTAI_COLLECTION:Collection();

&item = create PTAI_ACTION_ITEMS:ActionItem();
/*Pass an action item id*/
&item.open(&item_id);
&oAssignmentColl = &item.getAssignments();