Update MetaProperty on Empty Only Mappings
The update_metaproperty_on_empty_only_mappings
parameter in our application is used to verify whether the corresponding attribute already has a value on the Bynder asset. If no value is present, it adds the value; otherwise, it skips the update.
Overview
The update_metaproperty_on_empty_only_mappings
parameter enhances metadata management by providing a mechanism to selectively update meta-properties on Bynder assets based on the presence or absence of values. This feature ensures that existing metadata values are preserved while allowing for the addition of new values where necessary.
Usage
Users can define a list of Akeneo attributes within the update_metaproperty_on_empty_only_mappings
parameter. When updating metadata on Bynder assets, the system checks if these attributes are present and whether they already have a value assigned. If the attribute has no value on the Bynder asset, the system adds the specified value; otherwise, it skips the update to preserve existing values.
Example
For example, suppose we have defined a list of Akeneo attributes to be checked for updates:
update_metaproperty_on_empty_only_mappings: [
"color"
"material"
"size"
]