• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Vault Customization

    Reply
    Contributor
    Posts: 12
    Registered: 09-06-2005
    Accepted Solution

    finding out who has locked an item

    84 Views, 2 Replies
    02-08-2012 10:55 PM
    When I try to edit a locked item via GUI I get an error message which tells me who has locked the item. Trying to edit a locked item via API throws an error saying that the item is locked but I didn’t find a way to see the corresponding user. Did I miss something? Karl
    Employee
    Posts: 414
    Registered: 12-12-2006

    Re: finding out who has locked an item

    02-10-2012 05:00 AM in reply to: wehr

    You have to dig deep into the Detail XML on the SoapException.  Errors and restrictions can have parameters on them that give more information.  In this case, the locking user is passed back as one of these parameters.

     

    The restriction codes page in the API documentation lists what parameters you can expect for each restriction.  It also has an example of what the XML looks like.



    Doug Redmond
    Software Engineer
    Autodesk, Inc.
    http://justonesandzeros.typepad.com/

    Contributor
    Posts: 12
    Registered: 09-06-2005

    Re: finding out who has locked an item

    02-10-2012 07:16 AM in reply to: doug.redmond

    Many thanks, Doug!

    With your tip I found out how to get the user...