Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.