locked
modified by - capturing person who completed task RRS feed

  • Question

  • Hi i want to update my list and insert the person who completed the task. So I've used this code but I get an error when I use 'Modified By', It works for 'Status'. What could be the problem ?

     

    Guid id6 = workflowProperties.TaskList.Fields["Modified By"].Id;
    string status6 = onTreasuryTaskChanged_AfterProperties1.ExtendedProperties[id6].ToString();
    this.workflowProperties.Item["AT bankmaster entry user"] = status6;
    this.workflowProperties.Item.Update();
    Object reference not set to an instance of an object.

    But I get an error - Object reference not set to an instance of an object.

    I'm calling this code in the onTaskChange part so 'Modified By' should contain data ? Is there another way I can get the name of the  person who completed the task ?

     

    Thursday, December 22, 2011 9:28 AM

Answers