Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
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 ?
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.
It's not possible to register images on the PickFromQueue message. Is there a way to get around that limitation?
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:
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
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.
Business Applications communities