Problem when update a record in CRM. RRS feed

  • Question

  • I want to update a record.

    Update ws_installation (table) Set installIdentifier="111" where ws_name = "ABC company". The codes are as follows;


    //Create the installation object.

    ws_installation install = new ws_installation();


    //Set the installation object properties to be updated.

    install.ws_installationidentifier = "111";


    //Create the target object for the request.

    TargetUpdateWS_Installation target = new TargetUpdateWS_Installation();


    //Set the properties of the request object.

    target.WS_Installation = install;


    //create the request object.

    UpdateRequest update = new UpdateRequest();


    //Set the properties of the request object.

    update.Target = target;


    // Execute the request.

    UpdateResponse updated = (UpdateResponse)service.Execute(update);


    I don't know how to write codes "where ws_name = "ABC company". Please help me! Thanks a lot!!

    Wednesday, November 14, 2007 3:56 AM


  • I have solved this above problem. Thanks.

    Wednesday, November 14, 2007 9:10 AM