Tagged Questions
0
votes
2answers
38 views
add SPListItem with more than one field of data
I want to add an item to a SharePoint task list, with data in the Title, AssignedTo, and Status columns. The code below adds the item with data in the Title column, but no data in the other columns. ...
1
vote
0answers
115 views
SPSiteDataQuery without subfolder items?
I'm trying to use the SPSiteDataQuery to return the contents of several lists across a site collection. The problem I'm having, though, is that while there are only a few documents at the root level ...
0
votes
2answers
395 views
Add/Copy SPListItem object to Sharepoint List
explanation:
I have fetched list items based on conditions.
Like this.
var query = from SPListItem oItem in splist.Items
where ...
4
votes
2answers
199 views
SPQuery returning different before and after using RunWithElevatedPrivileges method
I am having a huge problem here.
I am executing a query looking for a SPListItem, when I execute this query with user identity it works well, retuning the fields "Author" and "Editor" that I need.
...
0
votes
1answer
561 views
How to get Attachment URL Programatically From Sharepoint ListItem?
How to get Attachment Full URL Programatically From Sharepoint ListItem?
Explanation:
I have adding new item with attachment.
Now i have to bind that attachment link to grid.
When click on that link ...
2
votes
2answers
68 views
Getting latest datetime from a splist
I have sharepoint list with data and one of the columns contains date ... how can i programmatically retrieve the latest date, the field is a Date And Time type?
2
votes
2answers
47 views
Retrieving the highest value from list
My question is regarding retrieving a value from a sharepoint list. Basically I have a list with some data. One of the fields in the list is a text field with numbers.
So what i want to do, i want to ...
0
votes
1answer
289 views
selected SPListItem in the current list
how to get the selected SPListItems in the current SPList ?
I thought I would find a helping property like this:
SPListItemCollection mySelectedItems = ...
1
vote
1answer
94 views
difference between item[] and item.fields[]
I want to retrieve let's say the title field of my item so what's the différence between doing these acces methods :
SPList myList = properties.List;
string mytitle1 = ...
1
vote
0answers
91 views
Is my Object Casting Model acceptable?
I'm creating a SharePoint application, and am trying some new things to create what amounts to an API for Data Access to maintain consistency and conventions.
I haven't seen this before, and that ...
1
vote
2answers
1k views
update SPList using csv via Powershell
knowing that is possible in PS, exporting SPList items to PS objects(link1 link2) what is the best way, to go into the other way:
Create/Update an SPList from an exported csv or format-table.
0
votes
1answer
493 views
Is there a property to get all subitems/subfolders from a SPListItem?
I need to find out how many subitems and subfolders a SPListItem has. The fields ItemChildCount and FolderChildCount are no solution for me, because they only count the folder/item directly beneath ...
2
votes
2answers
510 views
How to find a file with name = X in a SPList
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 ...

