OrganizationServiceContextExtensions.AddToQueue Method (OrganizationServiceContext, EntityReference, Guid, Guid, Entity)
Applies To: Dynamics CRM 2015
Moves a record from a source queue to a destination queue. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid AddToQueue(
this OrganizationServiceContext context,
EntityReference target,
Guid sourceQueueId,
Guid destinationQueueId,
Entity queueItemProperties
)
public:
[ExtensionAttribute]
static Guid AddToQueue(
OrganizationServiceContext^ context,
EntityReference^ target,
Guid sourceQueueId,
Guid destinationQueueId,
Entity^ queueItemProperties
)
static member AddToQueue :
context:OrganizationServiceContext *
target:EntityReference *
sourceQueueId:Guid *
destinationQueueId:Guid *
queueItemProperties:Entity -> Guid
<ExtensionAttribute>
Public Shared Function AddToQueue (
context As OrganizationServiceContext,
target As EntityReference,
sourceQueueId As Guid,
destinationQueueId As Guid,
queueItemProperties As Entity
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
target
Type: Microsoft.Xrm.Sdk.EntityReferenceThe target record to add to the destination queue.
sourceQueueId
Type: System.GuidThe ID of the source queue.
destinationQueueId
Type: System.GuidThe ID of the destination queue.
queueItemProperties
Type: Microsoft.Xrm.Sdk.EntityThe properties that are needed to create a queue item in the destination queue.
Return Value
Type: System.Guid
Returns a Guid, the ID of the queue item that is created in the destination queue.
Remarks
This is a method wrapper for the AddToQueueRequest and AddToQueueResponse classes. See the documentation in the Request class for more information about this message.
See Also
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright