Community
Showing results for 
Search instead for 
Do you mean 
Reply

Add Custom Fields to Note, History or Activitiy

Copper Contributor
Posts: 7
Country: Germany

Add Custom Fields to Note, History or Activitiy

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.

Employee
Posts: 1,163
Country: USA

Re: Add Custom Fields to Note, History or Activitiy

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.

Matthew Wood
Act! SDK Support
Community Moderator
Copper Contributor
Posts: 7
Country: Germany

Re: Add Custom Fields to Note, History or Activitiy

OK, than i don't need to search any longer. Thanks.