header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Update List Items' Fields in Sharepoint
Last Post 17 Nov 2009 06:14 AM by Mihail Stacanov. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Mihail StacanovUser is Offline
New Member
New Member
Posts:15
Avatar

--
17 Nov 2009 06:14 AM
    Hi All

    How can I update or change list items values with Powershell in Sharepoint.

    Im using this code
    [void][System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $spSite = new-object Microsoft.SharePoint.SPSite("mysite")
    $spWeb = $spSite.OpenWeb("myweb")
    $spList = $spWeb.Lists["mylist"]
    $spitems = $splist.items

    I cant see any methods for updating items in list
    When I use $spitem.fields | select title
    the output is title of all fields.
    And if Im deleting one of the fields it deletes entire field with its properties not its values.
    Maybe there are a possibility to delete the values of one field and after that add new values to it but how to delete old values?

    Thanks for advance
    Mihail Stacanov
    http://proproit.com
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer