Sunday, February 1, 2015

power shell for checking if a item existed into custom list

You can iterate through all items this way



$list = $web.Lists["YourCustomList"]
$collListItems = $list.Items;
$count = $collListItems.Count - 1
for($intIndex = $count; $intIndex -gt -1; $intIndex--)
{

}



and search for the value in your field




Please mark a post helpful/answer if it is really helpful or answer your query


No comments:

Post a Comment