title | description | ms.custom | ms.date | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | applies_to | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | search.audienceType | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sample: Specify a queue item to work on (early bound) (Developer Guide for Dynamics 365 Customer Engagement) | MicrosoftDocs |
The sample code demonstrates how to use PickFromQueueRequest to specify a user who will work on a queue item. |
10/31/2017 |
pehecke |
sample |
|
|
be171519-f8d0-43e6-b5a7-770802da47db |
18 |
JimDaly |
nabuthuk |
|
This sample shows how to use PickFromQueueRequest to specify a user who will work on a queue item. You can download the sample from here.
[!includecc-sample-note]
[!includecc-how-to-run-samples]
The PickFromQueueRequest
message is intended to be used in a scenario where it contains data that is needed to assign a queue item to a user and optionally remove the queue item from the queue.
In order to simulate the scenario described in What this sample does, the sample will do the following:
- Checks for the current version of the org.
- The
Queue
method creates a private queue instance and set its property values. - The
QueueItem
method creates a new instance of queueitem and initialize its properties.
- The
WhoAmIRequest
method retrieves the current user information. - The
PickFromQueueRequest
method creates an instance of an existing queueitem in order to specify the user that will be working on it.
Display an option to delete the sample data that is created in Setup. The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
[!INCLUDEfooter-include]