Loading
Insurance
InsVlocityActionService:assignRecordToQueue

InsVlocityActionService:assignRecordToQueue

Use this service to assign a record to a specified Salesforce queue.

Class: InsVlocityActionService

Method: assignRecordToQueue

How It Works

  1. Takes the Id of a record and retrieves that record.

  2. Using the queue name from invokeMethodInput, the service searches for an instance of User Group (type=Queue).

  3. The retrieved queue is assigned as the owner of the record (OwnerId field value = Salesforce queue).

Note
Note

If the Salesforce queue is configured to receive email notifications, Salesforce sends the emails to the members of the queue.

Inputs

Input

Description

Id

Required.

Id of the record for any object type.

invokeMethodInput

The InvokeMethodInput__c value set in the Vlocity Action instance is passed on at runtime during the execution of the Vlocity State Model.

The value must be in JSON format, with a single key-value pair. Set the key as 'queueName'. The value must be set with the name of the Salesforce queue.

{'queueName': 'Application Reviewers'}

Input JSON

Here is the format for the input JSON:

{ 
   "Id": <Application__c Id>,
   "invokeMethodInput": {"queueName": <name of user queue>}
}

And here's a real-life example:

{ 
   "Id": "a046g00000FGItyAAH",
   "invokeMethodInput": {"queueName": "Application Reviewers"}
}
 
Loading
Salesforce Help | Article