locked
CRM 2011 Personal Queues RRS feed

  • Question

  • I'm upgrading code that was written for CRM 4.  It is used to pop an activity off a public work queue and assign it to the calling users private WIP queue.  It does this by getting the activity on the top of the work queue and assigning it to the users queue using the Handle operation.

    In CRM 2011 queues work differently and so I've become stuck on how to determine which queue is a users personal queue.  I cant search the queues by the 'owninguser' attribute as a user may own more than one queue.  I thought about using the user's first and last name as each user's default personal queue is named '<firstname lastname>' which would work fine as long as it could be assumed each users personal queue is named using that convention.  Its highly unlikely but theoretically another user could create a queue using someone else's name in that format before the other person is added to CRM.  I don't know how CRM would handle creating the other user's default queue if a queue already existed with their name.

    So in short what I'm asking is, is there anyway to determine a user's default queue?

    I've been using fetchXML queries but I'm open to other solutions.

    Thanks

    Colin

    Tuesday, September 20, 2011 10:50 AM

Answers

  • There is a field on user entity called Default Queue. You can use that.

    I hope this helps.


    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    • Proposed as answer by Amreek Singh Tuesday, September 20, 2011 12:55 PM
    • Marked as answer by yokall Tuesday, September 20, 2011 1:27 PM
    Tuesday, September 20, 2011 12:55 PM
  • The user entity has a field for Default Queue. You just need to populate the default queue each time you create a user (by default this will be the queue <firstname lastname>) but you can change it any time.

    Then you just need to retrieve the user entity and the default queue attribute.


    Gonzalo | gonzaloruizcrm.blogspot.com

    • Proposed as answer by Gonzalo Ruiz RModerator Tuesday, September 20, 2011 12:56 PM
    • Marked as answer by yokall Tuesday, September 20, 2011 1:27 PM
    Tuesday, September 20, 2011 12:56 PM
    Moderator

All replies

  • There is a field on user entity called Default Queue. You can use that.

    I hope this helps.


    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    • Proposed as answer by Amreek Singh Tuesday, September 20, 2011 12:55 PM
    • Marked as answer by yokall Tuesday, September 20, 2011 1:27 PM
    Tuesday, September 20, 2011 12:55 PM
  • The user entity has a field for Default Queue. You just need to populate the default queue each time you create a user (by default this will be the queue <firstname lastname>) but you can change it any time.

    Then you just need to retrieve the user entity and the default queue attribute.


    Gonzalo | gonzaloruizcrm.blogspot.com

    • Proposed as answer by Gonzalo Ruiz RModerator Tuesday, September 20, 2011 12:56 PM
    • Marked as answer by yokall Tuesday, September 20, 2011 1:27 PM
    Tuesday, September 20, 2011 12:56 PM
    Moderator
  • Thanks for your quick answers.  I missed it when I was looking for it earlier.  For anyone else trying to do something similar using the SDK.  The attribute that contains a reference to the user's default queue is 'queueid'.

     

    Thanks again for your replies.

    Tuesday, September 20, 2011 1:31 PM