CrmServiceClient.AddEntityToQueue Method (Guid, String, String, Guid, Boolean, Guid)
Applies To: Dynamics CRM 2015
Route an entity to a public queue.
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public bool AddEntityToQueue(
Guid entityId,
string entityName,
string queueName,
Guid workingUserId,
bool setWorkingByUser = false,
Guid batchId = null
)
public:
bool AddEntityToQueue(
Guid entityId,
String^ entityName,
String^ queueName,
Guid workingUserId,
bool setWorkingByUser = false,
Guid batchId = null
)
member AddEntityToQueue :
entityId:Guid *
entityName:string *
queueName:string *
workingUserId:Guid *
setWorkingByUser:bool = false *
batchId:Guid = null -> bool
Public Function AddEntityToQueue (
entityId As Guid,
entityName As String,
queueName As String,
workingUserId As Guid,
setWorkingByUser As Boolean,
batchId As Guid
) As Boolean
Parameters
entityId
Type: System.GuidID of the entity to route.
entityName
Type: System.StringName of the entity for the specified ID.
queueName
Type: System.StringName of the queue to route the entity to.
workingUserId
Type: System.GuidID of the user to set as the working system user.
setWorkingByUser
Type: System.Booleanif true Set the worked by when doing the assign
batchId
Type: System.GuidOptional. 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
© 2016 Microsoft. All rights reserved. Copyright