Retrieve the list value from sharepoint through code

Posted on 2011-04-19
Last Modified: 2012-05-11
I have list

field f1 type yes or no(appeance is check box )
feild f2 text

now i want to update the list through console application through which i want get the value of f1(if its checked) update f2 as " completed"
if f1 is unchecked update f2 as " working"

Please can any one help me he code

Question by:LathaLiquidHub

    Author Comment

    please any oe respond soon its very urgent
    LVL 1

    Accepted Solution

    Try something like this (change url/list/id):  

    [string] $url =  ""
    $web =$site.openweb()
    $list = $web.lists["<list name>"]
    if ($item.item("f1")){
    $item.item("f2") = "completed";
    $item.item("f2") = "working";

    Open in new window


    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
    The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now