Looking for recommendations. Have a file in a document library with name x.txt. In a workflow code behind, I need to get the file to read its contents. What is the best/most efficient way to do this? Was thinking a linq query on the SPList.Item collection but might be off.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
I'm not sure if I understand you correctly, but if you have the list, you could get your item like this
|
|||
|
|
|
If you use linq to object, you always retrieve ALL records from DB. It is not good if you have got a lot of data. To reduce records you can use CAML query:
In this case items are selected from DB by query and then you can get first item. |
||||
|
|