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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disable Popup to optionally remove the queue item from the queue

(0) ShareShare
ReportReport
Posted on by 1,549

In CRM 2015 SP1, when  you pick an item from a queue, there is a window that allows you to optionally remove the queue item from the queue.

Since we never want to remove it, we are trying to disable that popup window.

Anyone knows how to to this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    KZee Profile Picture
    on at
    RE: Disable Popup to optionally remove the queue item from the queue

    If I am not wrong, you want to hide / remove the “Remove” button from the ribbon which appears when a queue item is selected in a queue.

    You can use ribbon workbench to remove / hide that button

    ribbonworkbench.uservoice.com/.../102796-5-hiding-unhiding-ribbon-elements

    Ribbon workbench can be downloaded from the following link.

    www.develop1.net/.../Ribbon-Workbench-for-Dynamics-CRM-2011.aspx

  • yleclerc Profile Picture
    1,549 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    No that is not what I mean.

    In the Queues, there is a "Pick" button. When you click on that button, there is a window with a checkbox that says "Also remove the item(s) from the Queue.

    I want to disable that window because it is useless to us and it's just an extra click,

  • Suggested answer
    KZee Profile Picture
    on at
    RE: Disable Popup to optionally remove the queue item from the queue

    The popup which appears when you click the button is out of the box popup.

    If you want to pick a queue item without showing that popup then you can hide the existing pick button and add your own button in the ribbon. You can then make a soap request for PickFromQueueRequest on the button press in javascript.

    You can use ribbon workbench (links provided earlier) to hide the existing button and add a new button in the ribbon.

    Following links explains how to make a soap request to CRM in javascript and the PickFromQueueRequest.

    mileyja.blogspot.co.uk/.../using-jscript-to-access-soap-web.html

    msdn.microsoft.com/.../microsoft.crm.sdk.messages.pickfromqueuerequest(v=crm.7).aspx

    I hope this helps.

  • yleclerc Profile Picture
    1,549 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    This helps a lot actually! I created the new button and assigned a command to that button using Ribbon Workbench. Now I need to create the javascript to make it work.

    I understand the example by mileyja, but I'm fairly new to js.

    Can you provide me with a little more as to what the code would look like?

  • Suggested answer
    KZee Profile Picture
    on at
    RE: Disable Popup to optionally remove the queue item from the queue

    Have a look at the following link which explains how to call a javascript function on a ribbon button.

    blog.cobalt.net/.../ribbon-workbench-solution

    If this example works then change this function to pass on the selected records which is explained in the following link.

    ribbonworkbench.uservoice.com/.../129783-pass-the-currently-selected-grid-row-s-to-a-custo

    Now you have ribbon button which once clicked, passes on the ids of the selected queueitems to a javascript function.

    The next step is to make a soap request(s) for the selected queueitems.

    Following link lists the parameters reqired for pickfromqueuerequest

    msdn.microsoft.com/.../microsoft.crm.sdk.messages.pickfromqueuerequest_members(v=crm.7).aspx

    For workerid you can call Xrm.Page.context.getUserId() to get the id the of user clicking pick button.

    and following link shows an example soap envelop which you might have to build and send to crm.

    guruprasadcrm.blogspot.co.uk/.../change-record-status-using-javascript.html

    You will have to set the correct type of and the parameters.

     var request = "<s:Envelope xmlns:s=\"schemas.xmlsoap.org/.../envelope\">";

           request += "<s:Body>";

           request += "<Execute xmlns=\"schemas.microsoft.com/.../Services\" xmlns:i=\"www.w3.org/.../XMLSchema-instance\">";

           request += "<request i:type=\"b:PickFromQueueRequest\" xmlns:a=\"schemas.microsoft.com/.../Contracts\" xmlns:b=\"schemas.microsoft.com/.../Contracts\">";

           request += "<a:Parameters

    I hope this helps.

  • prashant mirje Profile Picture
    785 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    [quote user="yleclerc"]

    I am creating new custom button and trying to execute PickFromQueueRequest but getting error?

    [/quote]

    i am trying to use soap request but getting 404 error ? can you assist me on this?

    pickFromQueueRequest: function (queueItemId, workerId, control)
    {
    var request = "<s:Envelope xmlns:s=\"schemas.xmlsoap.org/.../envelope\">";
    request += "<s:Body>";
    request += "<Execute xmlns=\"schemas.microsoft.com/.../Services\" xmlns:i=\"www.w3.org/.../XMLSchema-instance\">";
    request += "<request i:type=\"b:PickFromQueueRequest\" xmlns:a=\"schemas.microsoft.com/.../Contracts\" xmlns:b=\"schemas.microsoft.com/.../Contracts\">";
    request += "<a:Parameters xmlns:c=\"schemas.datacontract.org/.../System.Collections.Generic\">";
    request += "<a:KeyValuePairOfstringanyType>";
    request += "<c:key>QueueItemId</c:key>";
    request += "<c:value i:type=\"d:guid\" xmlns:d=\"schemas.microsoft.com/.../Serialization\">" + queueItemId + "</c:value>";
    request += "</a:KeyValuePairOfstringanyType>";
    request += "<a:KeyValuePairOfstringanyType>";
    request += "<c:key>WorkerId</c:key>";
    request += "<c:value i:type=\"d:guid\" xmlns:d=\"schemas.microsoft.com/.../Serialization\">" + workerId + "</c:value>";
    request += "</a:KeyValuePairOfstringanyType>";
    request += "<a:KeyValuePairOfstringanyType>";
    request += "<c:key>RemoveQueueItem</c:key>";
    request += "<c:value i:type=\"d:boolean\" xmlns:d=\"www.w3.org/.../XMLSchema\">false</c:value>" += "</a:KeyValuePairOfstringanyType>";
    request += "</a:Parameters>";
    request += "<a:RequestId i:nil=\"true\" />";
    request += "<a:RequestName>PickFromQueue</a:RequestName>";
    request += "</request>";
    request += "</Execute>";
    request += "</s:Body>";
    request += "</s:Envelope>";

  • yleclerc Profile Picture
    1,549 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    We actually put this on the ice for now. I tried to make this work but not being a programmer, I couldn't. I asked a colleage to look into this but he has not got back to me since. I will post a solution when I find it. Let me know if you can make this work!

  • martingr Profile Picture
    600 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    Hi. Did you find a fix for this? Thanks"!

  • yleclerc Profile Picture
    1,549 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    This is still on the back burner for now.

    As soon as I get this resolved, I will post a solution.

  • Verified answer
    yleclerc Profile Picture
    1,549 on at
    RE: Disable Popup to optionally remove the queue item from the queue

    easycrmblog.wordpress.com/.../custom-pick-button-on-queueitem

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans