Skip to content

Instantly share code, notes, and snippets.

@tomfulton
Created March 20, 2012 16:06
Show Gist options
  • Save tomfulton/2137583 to your computer and use it in GitHub Desktop.
Save tomfulton/2137583 to your computer and use it in GitHub Desktop.
Contour - Update a field's value within a WorkflowType
List<object> Values = new List<Object>();
Values.Add("value here");
RecordField rf = record.GetRecordField("FieldAlias"); // Use a Setting to define during workflow creation
rf.Values.Clear();
rf.Values = Values;
FormStorage fs = new FormStorage();
Form f = fs.GetForm(record.Form);
RecordStorage rs = new RecordStorage();
rs.UpdateRecord(record, f);
rs.UpdateRecordXml(record, f);
fs.Dispose();
rs.Dispose();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment