I had difficulties getting documets from a library i called "JobApplications", so I debugged step by step the following code :
title = lib.Title;
i = lib.Items.Count;
.Where(item => item.Parent.Title == "JobApplications" && item.Status == ContentLifecycleStatus.Live)
.OrderByDescending(item => item.DateCreated)
By going step by step in the first part of the code, I checked that a library with the Title "JobApplications
" existed, and had 4 items in it (the part starting with "
Then, in the second part (starting with "
App.WorkWith().Documents().Where(...)), I try to look for documents which belong to the library named "JobApplications", and count them.
I find 0 documents, while the first part counted 4...
Is there something i did wrong? Am I counting the documents i thought?