web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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,985 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,985 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 50

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans