London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
The Business Foundation (BF) MetaFieldBuilder class lets you create meta-fields based on existing system meta-types.
The MetaFieldBuilder class has the following methods:
When you use the MetaFieldBuilder, the Edit scope is automatically opened.
Example: Using the MetaFieldBuilder to create a meta-field.
using (MetaFieldBuilder builder = new MetaFieldBuilder(metaClass))
{
builder.CreateDateTime(CreatedFieldName, CreatedFriendlyName, false, true);
builder.CreateText(CreatorFieldNameText, CreatorFriendlyName, false, 50, false);
builder.CreateGuid(CreatorFieldNameGuid, CreatorFriendlyName, false);
builder.CreateInteger(CreatorFieldNameInteger, CreatorFriendlyName, false, -1);
builder.SaveChanges();
}
Last updated: Oct 12, 2015