Notifications
Announcements
No record found.
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
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.
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
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 45 Super User 2025 Season 2
Daniyal Khaleel 27 Most Valuable Professional
Soundari 15