Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There's really no built-in way to do this. But with all things SharePoint, there are multiple ways to accomplish things. Since you don't have access to SP Designer, or the server itself, probably the path of least resistance would be to use the SP Web Services to query the list (say, at 8AM) and get a count of items, store (persist) the item-count somewhere, then query the list again (5PM), and check it against the initial day's count, and give you a total.</p> <p>You can access List data via the SP Web Services at <code>http://server_name/_vti_bin/Lists.asmx</code>. Use something like the code below to get the list count. You can persist the stored value anywhere - text file, local storage, memory..</p> <p>Note, you need to add a Web Service reference to your project. In the code below, this is named sp2010, but obviously you can name your whatever you want. The variable listItemCount will hold your list count. Much of the rest of the code should be self-explanatory.</p> <pre><code> sp2010.Lists spList = new sp2010.Lists() { Credentials = new NetworkCredential("username", "password") }; string listName = "YourListName"; string listItemCount = string.Empty; XmlNode listXML = spList.GetListItems(listName, null, null, null, null, null, null); XmlDataDocument innerXml = new XmlDataDocument(); innerXml.LoadXml(listXML.InnerXml); XmlNodeList rows = innerXml.GetElementsByTagName("rs:data"); foreach (XmlNode attribute in rows) { // listItemCount holds the count of your list listItemCount = attribute.Attributes["ItemCount"].Value; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload