Loading
Salesforce now sends email only from verified domains. Read More
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          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