web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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

  • Arti Sharma Profile Picture
    15 on at

    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,983 Moderator on at

    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

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans