Skip to content

Unable to access CustomerCharacteristicCondition #36

@Vouzamo

Description

@Vouzamo

There is information in the DD4T XML / JSON against each component presentation for any TargetGroupConditions (previously Conditions) where each TargetGroup has an enumerable of Conditions.

However, the Conditions JSON contains no information about the concrete class it should be deserialized with (e.g. "$type": "CustomerCharacteristicCondition") and, presumably because of this, it is not possible to cast Condition to CustomerCharacteristicCondition to access its properties.

At present, it appears the only way to evaluate TargetGroupConditions would be to implement some custom deserialization in order to have access to the properties of each condition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions