SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry for the simple question.

I have a Form Library whose directory listing I need to access from an InfoPath form containing custom code. I don't need the contents of any of the files, just the filename of the newest document in the library. What service/library can I use that will help grab this information?

I'm writing in C#

Thank you!

share|improve this question

You can use the Lists webservice. You could experiment with Caml Query Builder in order to get your query right to return the newest document.

share|improve this answer

I found out I can just add a data connection to a Form Library and access the data source through XPath tools. That way you don't even need SharePoint connection libraries. (c:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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