Round Robin Assign Multiple Items

Assign a records to a users via a round robin queue

Assigns a list of item to users associated with a Gradient Works Queue. The items may be of any type (e.g. Account, Lead, etc). The assignments are performed immediately.

You can access the results of the assignment attempts in the List of Assignment objects included in the output. It will include information about if each assignment completed successfully or if there was an error as well as information about the user that received the item. You can loop over these as inputs to other actions such as Send Single Assignment Email or Send Slack Message.

If you specify a capacity using capacityValue or capacityValueField, that value will be used in capacity calculations when assigning the item to a user. For example, if you specify a capacityValue of 5, users must have an availableCapacity greater than or equal to 5 to be eligible for assignment. If no capacity is specified, we assume a null capacity value for the item and do not perform any capacity calculations during assignment.

Inputs

NameRequiredTypeDescription

queue

Yes

String

The queue to add to. May be an Id or the queue name.

capacityValue

No

Long

Capacity value to apply to all items

capacityValueField

No

String

Retrieve capacity value from this field on each object

items

No

List<SObject>

List of items to add to the queue. May be any Salesforce object.

Outputs

NameTypeDescription

assignments

Information about each of the assignments in the same order as the input items

count

Integer

The total number of assignments performed

Last updated