Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Unable to retrieve "Remove The Item From Queue" Property from Plugin on "RouteTo" Message of QueueItem Plugin

(0) ShareShare
ReportReport
Posted on by 5

I am trying to Restrict user from selecting "Remove Item From Queue" to yes on Route and Pick button of QueueItem.

For Pick button I am able to handle this from plugin by using context.inputparameters["RemoveFromQueue"] property

but for Route button, m not getting any property for checking whether user has selected RemoveFromQueue to yes/no to restrict it

Kindly suggest

  • Arti Sharma Profile Picture
    15 on at
    RE: Unable to retrieve "Remove The Item From Queue" Property from Plugin on "RouteTo" Message of QueueItem Plugin

    Checked that, the parentcontext for both RouteTo and Remove is null

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Unable to retrieve "Remove The Item From Queue" Property from Plugin on "RouteTo" Message of QueueItem Plugin

    Hi,

    Can you please check ParentContext property of context to see if you find any difference between these two plugin execution.

    context.ParentContext

    Debug your code for both routeTo and Remove button and verify parent context property.

    Please mark my answer verified if i were helpful

  • Arti Sharma Profile Picture
    15 on at
    RE: Unable to retrieve "Remove The Item From Queue" Property from Plugin on "RouteTo" Message of QueueItem Plugin

    Yes, i already checked about "RemoveFromQueue" message but the problem with this message is that it works for both RouteTo button and for Remove button as well in QueueItem.

    As per our requirenment, we need to restrict RouteTo not Remove button.

    There is no parameter which identifies the triggering point of this message.

    Kindly guide

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Unable to retrieve "Remove The Item From Queue" Property from Plugin on "RouteTo" Message of QueueItem Plugin

    Hello,

    RouteTo does not have any input parameter as RemoveFromQueue. See below Request class.

    docs.microsoft.com/.../routeto

    You should register your plugin on remove fromqueue message instead.

    docs.microsoft.com/.../removefromqueue

    However when you use pick button then you will RemoveQueueItem properties in input parameter.

    docs.microsoft.com/.../pickfromqueue

    Use below code to restrict that option in Pick button plugin. Set value to false.

    CQ37.png

    Please mark my answer verified if i were helpful

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans