4

I have a requirement where i need to find the list of all checked out item in Tridion under all Tridion users. I am using tridion 2013 SP1.

I can get all checked out items under my name by using below code.

 RepositoryLocalObjectsFilterData filter = new RepositoryLocalObjectsFilterData();
 XElement itemList = client.GetSystemWideListXml(filter);
 Console.WriteLine("Count :: " + itemList.Descendants(tcm + "Item").Count());

How to get it for all users. Do i need to use some filter?

2
  • 1
    What rights does your current user have? Commented May 26, 2014 at 8:10
  • I have admin rights . Commented May 26, 2014 at 8:23

3 Answers 3

4

Well, if the user (under which you are running the code) has proper rights your code should return the desired result for you, as I think the code is correct.

on the other side, if you want to list items checked out by specific user; you can use RepositoryLocalObjectsFilterData.LockUser Property.

UPDATE:

I am little surprised that the code returning the items checked by one user only. But there is a alternate approach as well, though it may take much time to run the script but it should serve the puspose.

  1. get all the users using getSystemWideList
  2. Iterate through the user, and use your same code but set RepositoryLocalObjectsFilterData.LockUser Property to the user.
  3. collect the results from each iteration.
4
  • I need the list of checked out items for all users in my CMS. The code i pasted above gives the list of items checked out by me only. Commented May 26, 2014 at 8:25
  • Can you confirm that there are other items checked out by other users? Commented May 26, 2014 at 8:44
  • yes there are items checked out by other users. Commented May 26, 2014 at 8:45
  • Thanks Saurabh, this solution worked for me . I will be generating this list once in a while so i am okay with retrieving the list of user first and iterating through it. Commented May 26, 2014 at 9:30
3

There was a defect in 2013 (and SP1) that caused administrators to no longer see items checked out by other users. This has been addressed in a hotfix.

Until it is available for download on SDL Tridion World, I'd advice you to contact Customer Support and reference CM_2013.1.0.88013 (assuming you are on 2013 SP1).

1
0

Please check the similer question with answer in below link:

How do I get a list of checked out items with the Core Service?

2
  • Please read my question carefully. I am asking the list of all checked out items in Tridion not only mine. Commented May 26, 2014 at 8:40
  • That's what the other question deals with Commented May 26, 2014 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.