Setting Custom Field inside Custom Object
Content
I am using a custom Workspace Type called "RelatedContact" and its custom fields associated with it. The "RelatedContact" object is listed under the Data Import Templates. Is there anyway to set the value of the custom fields associated with this Data Import Template ("Related Contact");
IGenericObject genObj = (IGenericObject)_recordContext.GetWorkspaceRecord("Rel_Contact$RelatedContact");
IList<IGenericField> fields = genObj.GenericFields;
foreach (IGenericField genField in fields)
{
MessageBox.Show("Field Name: " + genField.Name + " Field Value: " + genField.DataType.ToString());
}
It works and prints out the fields and the datatypes. Is there a way to specify the value for one of the generic fields?
Thanks