Skip to content

TaxonomyFieldCreationOptions has hard-coded AnchorId #1681

@chiefmillso

Description

@chiefmillso

Category

  • Feature Request / Domain Model

Describe the domain model extension

Currently the TaxonomyFieldCreation approach has a hard-coded approach to setting the AnchorId for the TaxonomyField. The standard approach of modifying the Field.AnchorId after creation is not supported due to the property not existing on the underlying field type.

This does not allow setting constrained terms for a given field definition and requires do all the hard work through field xml.

Model

Model: Field
Properties: AnchorId

The creation classes are:
Public > FieldTaxonomyOptions
Internal > TaxonomyFieldCreationOptions

Additional Information

Affected tests - ProvisionTaxonomyFieldRequestTests.cs

I would recommend making the ProvisionTaxonomyFieldRequest constructor take an optional (default null) parameter supporting setting the anchorid (Guid? anchorId = null) for backwards compatbility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions