title: Update task item programatically in Sharepoint with CSOM
body: <p>I want to update a task item programatically in CSOM. Item is updating but workflow is not triggering. I need just to open the item in sharepoint and save it. Then workflow is triggering.</p>
  
  <pre><code>                    List requestTasksList = MyWeb.Lists.GetByTitle("TestRequest Tasks");
  
                      List&lt;TestRequestModel&gt; testRequestList = new List&lt;TestRequestModel&gt;();
  
                      ListItemCollection ColListItems = requestTasksList.GetItems(Spqur);
  
                      ctx.Load(ColListItems);
                      ctx.ExecuteQuery();
  
                      foreach (ListItem task in ColListItems)
                      {
                          task["Status"] = "Completed";
                          task["TaskOutcome"] = "Approved";
                          task["PercentComplete"] = 1.0;
                          task["Checkmark"] = 1;
                          task.Update();
                          requestTasksList.Update();
                      }
                      ctx.ExecuteQuery();
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/DLQFZ.png" rel="nofollow">This is the updated task item</a></p>
  
  <p>As i said, When i click to save button, workflow is triggering and new task is creating.</p>