A method of the Lists class that adds, deletes, or updates the specified items in a list on the current site.

learn more… | top users | synonyms

12
votes
3answers
7k views

AllowUnsafeUpdates vs SPSecurity.RunWithElevatedPrivileges

When is the best time to web.AllowUnsafeUpdates vs SPSecurity.RunWithElevatedPrivileges? Specifically when dealing with updating an item in a list or updating the list itself. Is it safest to use ...
8
votes
2answers
704 views

Is it possible to create a “Link to a Document” in a Document Library using a CAML Batch Command with UpdateListItems?

I have a Document Library in WSS 3 which has the "Link to a Document" content type enabled, and I want to use a batch command (via lists.asmx updatelistitems) to create a series of links. Here is the ...
6
votes
1answer
2k views

ItemUpdated event handler runs four times

I have a list in the rootweb, and a list in a subweb. I want to update/add when something changes in an item in the subweb. This method is invoked in an ItemUpdated event receiver. The problem is that ...
6
votes
2answers
2k views

SPListItem.SystemUpdate updates SPListItem.File.ModifiedBy

As can be seen from the debug image when I call SystemUpdate(false) of a SPItem, that SPItem's File object's ModifiedBy attribute changes to "SHAREPOINT\system". Sorry, it's a bit weird way to ...
4
votes
4answers
128 views

How to update the name of an attachment from a list item (if possible, with SPServices)?

Like the title says, I'd like to know how to update the name of an attachment from a list item. The document name.I've figured out how to get the attachment from a list item (see code below), on the ...
3
votes
4answers
2k views

Remote Access to SharePoint Lists with PowerShell

I have a PowerShell script that pulls data from a database. I need to push this data to a SharePoint list on a different server. Would you have tutorial or examples that show how to do this ...
3
votes
1answer
2k views

Client Object Model - Update Document Library Metadata - Lookup Field with no required value

I am attempting to update metadata for documents in a document library (or List) using the client object model. I have whittled down a number of the error messages I was getting and now I am hitting ...
2
votes
2answers
2k views

Fetch list item properties using Powershell

I have document library. I want to replace some document properties using powershell. There are multiple properties associated with each document. First I'll need to check for all documents if that ...
2
votes
2answers
149 views

moving list items from wss 3.0 to foundation 2010 using lists.asmx

I'm trying to use Lists.UpdateListItems to move items from a list in WSS 3.0 to a list in SharePoint Foundation 2010. The original list contains several items. The target list does not contain any ...
2
votes
2answers
5k views

Edit multiple list items in one shot?

I have a list that contains many items. I'd like to give my users the ability to select 10-20 items by "checking" them and then edit them all at once. Certain fields (item name, id, etc.) are ...
2
votes
2answers
302 views

Is there a way to start a SharePoint workflow from VBA code?

I created a tool in Excel VBA that generates a custom report from the data I pulled from a SharePoint list via Excel VBA code. What I want to do is change/update the "Status" field for items within ...
2
votes
1answer
2k views

Powershell - Update column with managed-metadata

I have used following PS script to update a manage metadata column. Not sure how to go by updating a managed-metadata column. I know I need to only populate with "10;#Wholesale Agreement" in ...
2
votes
1answer
98 views

How to use Javascript to update a Discussion Board reply?

I have a Discussion Board with a series of replies. Each 'Message' (Reply) Content Type has an 'Answer' dropdown with the values 'YES/NO' (NO being default) I have created a hyperlink on the property ...
2
votes
2answers
1k views

Event Receiver not triggered by Approval Workflow

I have a simple workflow that approves a List Item. I have an ItemUpdated Event Receiver that is supposed to compute some fields and update another List Item. My event receiver gets triggered when I ...
2
votes
1answer
340 views

Update Created By field in Document Library using web service

I am uploading documents to Document Library using copy web service. I need to update read only fields like created, created by, modified, modified by, version,.. I changed the read only property of ...
2
votes
2answers
598 views

Unable to update list item - Additions to this web site have been blocked

I am developing a SharePoint job. In the public override void Execute(Guid targetInstanceId) method, my code goes: SPSecurity.RunWithElevatedPrivileges(delegate() { int count = ...
2
votes
1answer
586 views

set or update multiple values cascading lookup field using client object model

I'm struggling since a couple of weeks with setting a multiple values cascading lookup field using a client object model, I could set the first value but then It show me an error of invalid lookup ...
2
votes
1answer
518 views

New choices are not shown in existing list items

I have my custom list template. The template initially described a field Position using the following XML element: <CHOICES> <CHOICE>1</CHOICE> <CHOICE>2</CHOICE> ...
2
votes
0answers
150 views

Error code 0x81020030 when calling UpdateListItems of Lists.asmx web service

My problem is very similar to this one (in what I'm calling) but I'm receiving a different error. The XML I feed the service and the response is as follows; <Batch OnError="Continue" ...
2
votes
1answer
184 views

SPListItem update yields ItemUpdated/ing Numbering Scheme not found

I've written a console app that searches items in a SP document library (MOSS 2007) for a specific condition and updates the value in a column for each item that meets the criterion. I run the console ...
1
vote
4answers
137 views

How to update calculated column on a daily basis without admin rights?

I am running SharePoint 2013 and have a column that is supposed to determine whether or not each phase of a project is late. I am using the NOW() fucntion, which, of course, does not update ...
1
vote
1answer
5k views

Updating Sharepoint List items

I got a custom Sharepoint list which has the following list items Hostname - IP - OS - CPUs - RAM - Disk Server 1.1.1.1 Server 2003 3 8 Disk C: 20gb If i then ...
1
vote
2answers
2k views

Unable to update item using powershell when event reciever is enabled

I have a powershell script that I am using to update some list items programatically. It seems to work as I expected when I disable the event reciever that is associated with the list however when I ...
1
vote
3answers
743 views

Do I need to do an update after set permissions on a listitem in the ItemAdded event receiver?

I have an event receiver on itemAdded. I set some permissions like below. SPRoleAssignment role = new SPRoleAssignment(spPrincipal); ...
1
vote
2answers
216 views

Is it possible to update the searchindex for only one item?

Is it possible to update the searchindex for only on specific item. I'm search some tasklists through keywordsearch and showing them in a webpart. Then I have a custom action which changes the status ...
1
vote
1answer
678 views

SharePoint 2013 REST API: How can I clear a non-string field value?

I'm using the SharePoint 2013 REST API (my last choice, technological constraints require using it vs CSOM) and am encountering an issue when trying to clear any non-string (date, number, etc) field ...
1
vote
1answer
970 views

Javascript : How to handle version conflict errors when using javascript COM?

so I use quite a bit of the javascript client object model for CRUD operations to lists from custom pages (inputs) and I have found that I get version conflict errors on saves from time to time....its ...
1
vote
1answer
198 views

Large update in Event Receiver

I wonder how should I make a large update in Event Receiver by executing it in other thread. Normally it would look like that: public override void ItemUpdating(SPItemEventProperties properties) { ...
1
vote
1answer
2k views

Error code 0x81020073 when calling UpdateListItems of Lists.asmx web service

I am executing code in a program I have been working on that uploads files to sharepoint. I am uploading the file with HTTP PUT, then using the path to update the attributes. For a day or two I've ...
1
vote
1answer
99 views

update sharepoint list item based on title field

I have used server object model to update list item based on title field and used below code SPList list = web.Lists["ListName"]; SPListItemCollection items = list.GetItems(new SPQuery() { Query ...
1
vote
1answer
242 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
1
vote
2answers
5k views

UpdateListItems in a library with client object model

I’m trying to update some metadata with web services. I read following msdn article UpdateListItems and wrote a small test program, but sadly something went wrong. I get the error message, that the ...
1
vote
1answer
28 views

DATEDIF statement in SharePoint not working properly

I am trying to calculate the amount of days between two dates but my formula doesn't seem to be working properly. It's as is the function is ignoring the years in the dates. My function is as follows, ...
1
vote
1answer
160 views

Microsoft.SharePoint.SPException: Save Conflict. On List.Update()

I have a site collection that has ~600 sub-sites. Each sub-site has a sub-site, as well, making a total of ~1200 sites. I am iterating through each site and updating (resetting) a list. This is ...
1
vote
1answer
28 views

What approach should I take to update provisioned / existing team sites

I'm provision team sites based on web templates that are provisioned from a "request" list in SharePoint. (timerjob) I know that there would be some changes to the team sites, but what's the best ...
1
vote
1answer
143 views

Would applying a lock help to prevent a Save Conflict Error when simultaneously updating a list item?

I have a scenario where users may update a list item at the same time and this causes a Save Conflict error. I could catch the exception and reload the list item as suggested in ...
1
vote
1answer
325 views

Updating a List Using SharePoint Designer 2010 - can't find an example of my use case

I have two lists - one administrative with lots of details, and one public with a subset of the information. There are close to 2000 entries in the list. The admin list has 3 states, which I track ...
1
vote
1answer
257 views

How do I get the current Editor of an Listitem while ItemUpdating?

How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating? Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This ...
1
vote
3answers
513 views

How to update people field?

I have following code on infopath form. All the column gets updated in the target list except for the people column. The verifiedBy is not updating the column in SP List. (In the list I have to to ...
1
vote
1answer
172 views

What are “unsafe updates” for list items?

In the SharePoint 2010 server-side object model the SPWeb Class has a property "AllowUnsafeUpdates". What are unsafe updates in connection to list item changes? How are they to be delt with in code? ...
1
vote
2answers
446 views

How to implement 'on document property update' logic?

I need a functionality in which something happens after the properties of a document in document library get updated. I need some kind of event to fire after the user clicks Save button in edit form. ...
1
vote
1answer
412 views

Update list item from within list item

I have a list in SharePoint 2007 with a Person or Group type column, named "Attendees" which can contain multiple persons. I want to update Attendees with the logged-in user name on click of a custom ...
1
vote
2answers
1k views

Automated update of SharePoint List from .csv file

Our company wishes to keep an updated SharePoint List of our current customers for use in a InfoPath form. Our ERP system is capable of exporting this on a timer job to a certain location (i.e. a ...
1
vote
3answers
2k views

Why SPListItem.Update doesn't trigger workflows?

I have a workflow with Start Option "Start workflow automatically when an item is changed" and I have code that execute SPListItem.Update(), but this update doesn't force workflow to run execution. ...
1
vote
0answers
13 views

Copy a Excel to Document Library when something changes in database

I have got a Document Library with one Excel File. After something changes in a database located on another server, I want to update a version of Excel. How could I do it on SharePoint 2013?
1
vote
0answers
16 views

required field is not showing up as required in Sharepoint 2010

I have changed a field on the List item to required field of project site when I go and add new item that filed doesn't show up as required field. See Below Can you advise why?
1
vote
1answer
20 views

Updating + SystemUpdate()

I need to execute the SystemUpdate(true) in the event "UPDATING" to get the new item version field value. How can I do that without receive the message of conflict? public override void ...
1
vote
1answer
81 views

Update Page Content using SPServices

I am trying to update a Page's content using SPServices. When I run my code, it does update the correct page, but instead of updating the content, it just removes the content. var newContent = ...
1
vote
0answers
252 views

Update managed metadata Multi Value

I have a list which uses a managed metadata column, that is configured to have multiple values. I need to update the particular items in the list which have a specific term, and change it. For ...
1
vote
2answers
126 views

Update metadata on n amount of files at the same time programmatically, using SPListItem update methods or SPWeb update batch?

I need to update meta data on multiple files that exist on my SharePoint 2010 site. When starting the method that will update the metadata i do not know how many file that will need to be updated, ...