Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Field fApproval = newList.Fields.AddFieldAsXml(string.Format("<Field DisplayName='{0}' Type='{1}' />", _workflowInfo, FieldType.Note),
  2. true,
  3. AddFieldOptions.DefaultValue);
  4. fApproval.Update();
  5. newList.Update();
  6. cDestination.ExecuteQuery();
  7.  
  8. newItem[_workflowInfo] = workflowInfo.ToString(); // Or any data, tried to add just string as well, didn't work
  9.  
  10. newItem.Update();
  11. cDestination.ExecuteQuery();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement