CrmServiceClient.AddEntityToQueue Method (Guid, String, String, Guid, Boolean, Guid)


Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Route an entity to a public queue.

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)


public bool AddEntityToQueue(
    Guid entityId,
    string entityName,
    string queueName,
    Guid workingUserId,
    bool setWorkingByUser = false,
    Guid batchId = null
Public Function AddEntityToQueue (
    entityId As Guid,
    entityName As String,
    queueName As String,
    workingUserId As Guid,
    setWorkingByUser As Boolean,
    batchId As Guid
) As Boolean


  • entityId
    Type: System.Guid

    ID of the entity to route.

  • entityName
    Type: System.String

    Name of the entity for the specified ID.

  • queueName
    Type: System.String

    Name of the queue to route the entity to.

  • workingUserId
    Type: System.Guid

    ID of the user to set as the working system user.

  • setWorkingByUser
    Type: System.Boolean

    if true Set the worked by when doing the assign

  • batchId
    Type: System.Guid

    Optional. If set to a valid GUID (generated by CreateBatchOperationRequest), will assign the request to the batch for later execution. Otherwise, runs the request immediately.

Return Value

Type: System.Boolean

true on success. Otherwise, false.

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright