Created
March 20, 2012 16:06
-
-
Save tomfulton/2137583 to your computer and use it in GitHub Desktop.
Contour - Update a field's value within a WorkflowType
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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