05-26-2010 06:30 AM
Is it possible to add custom fields to the Entities Note, History or Activity?
I tried to add a HistoryField with the following code:Act.Framework.Histories.HistoryField test = new Act.Framework.Histories.HistoryField();
Act.Framework.Histories.HistoryFieldDescriptor hfd = new Act.Framework.Histories.HistoryFieldDescriptor(test);
But the new descriptor doesnt appear in the array of the FieldDescriptors:
Act.Framework.ComponentModel.DBFieldDescriptor hFields = ActApp.ActFramework.Histories.GetFieldDescriptors();
Can anyone help me? Thanks a lot, Primius.
05-26-2010 08:07 AM
As far as I'm aware it's not possible to add fields to these.
Additionally, for entities we are able to create fields for we have to call ActFWK.Fields.Save(OurField); Our field has to be of type FieldDescriptor, if we examine the parameters for creating a new field descriptor we'll see it only accepts either a CustomEntityDescriptor or RecordType, which consists of Contacts, companies, groups, products and opportunities.