Hi ,
I need to update spfielduservaluecollection ,
For this requirement i need to access task created event
but it work sometimes only
private void onTaskCreated1_Invoked(object sender, ExternalDataEventArgs e)
{
this.onTaskCreated1_AfterProperties1 = this.onTaskCreated1.AfterProperties;
SPListItem spLstItem = workflowProperties.TaskList.Items.GetItemById(this.onTaskCreated1_AfterProperties1.TaskItemId);
SPFieldUserValueCollection spUservalues = Utility.ConvertSPUserCollection("President", workflowProperties.Web);
spLstItem[SPBuiltInFieldId.AssignedTo] = spUservalues.ToString();
spLstItem[SPBuiltInFieldId.WorkflowVersion] = 1;
spLstItem.Update();
}
This is my code for assigning the values to assignto field
Can anyone help me
Thanks in advance