You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Setting Custom Field inside Custom Object

Accepted answer
edited Apr 25, 2016 6:39PM in UI Extensibility 2 comments


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?


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!