08-22-2019 09:37 AM
I'm trying to create a new Company CustomEntity. This is a CustomEntity which has existed in the database previously but has (apparently) been deleted.
Dim Descriptors() As CustomEntityDescriptor Descriptors = Instance.CustomEntities.GetCustomSubEntities(RecordType)
Dim Descriptor As CustomEntityDescriptor Descriptor = Instance.CustomEntities.CreateCustomSubEntity(Name, Description, ParentEntity, False)
It seems to be picking up fields which belong to a previous instance of the table.
This will work against a new database where the CustomEntity has never existed.
Anyone have any thoughts?