Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how can i prevent queue item to re-picked by different users?

Posted on by Microsoft Employee

hi,

the scenario is that a X user picked an Item 
but User Y still see it in the view of queue item he can work on : so he need to refresh the view to see the relevant queue items he can picked .
how can i prevent the re-picking ?

thanks,

Shani 

*This post is locked for comments

  • RE: how can i prevent queue item to re-picked by different users?

    Thank you Evgeniy for the idea and helpful resources.  This has worked out really well so far.  The default function still runs regardless of how the custom function executes so I'm working on that last bit before I deploy.  I haven't had to combine default and custom functions on a command before so I'm learning that bit.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how can i prevent queue item to re-picked by different users?

    This is just a quick idea, but:

    I would try to customize the command on the pick ribbon and put a custom JS-function before the default function which retrieves the selected record and checks for the Worked By of the queue item. You would need to pass the Selected item to that function and retrieve it via the Xrm.WebApi.retrieveRecord.

    So if the Worked by is not null (has a value) you can throw an Error- or AlertDialog via the Xrm.Navigation.openErrorDialog/Xrm.Navigation.openAlertDialog.

    You will find the necessary input on this pages:

    ribbonworkbench.uservoice.com/.../81981-2-customising-standard-ribbons

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

    docs.microsoft.com/.../retrieverecord

    docs.microsoft.com/.../openerrordialog

    P.S.: For older CRM versions you would need to use other ways of retrieving records and showing an error dialog, since Xrm.Navigation and Xrm.WebApi is v9.0 and above. But there are many different ways like XMLHttpRequest for retrieve and the Alert.js libraries for showing error/alert dialogs

  • RE: how can i prevent queue item to re-picked by different users?

    It's not possible to register images on the PickFromQueue message.  Is there a way to get around that limitation?

    Invalid-Step-Selected.PNG

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: how can i prevent queue item to re-picked by different users?

    Hi,

    One option is to write a plugin on PickFromQueue message where you can check if item workedby is already have some value you can throw exception, it is already picked.

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans