Bynder x Akeneo

Maintain Bynder options

Merge duplicate SKU options and delete the options of products removed from Akeneo.

The Create options job adds options to your Bynder metaproperties but never removes any. Over time, two problems can appear. Two jobs fix them. Both are run manually, when needed.

ProblemJob
The same product has several options in BynderMigrate options
Options remain for products, models or values deleted from AkeneoClean up options

⚠️ Both jobs change your Bynder taxonomy and the assets tagged with it. Read the result of a test run before applying them.

Merge duplicate options

Job: Bynder x Akeneo - Migrate options

When to use it

The same product shows several times in a Bynder metaproperty, for example [TS01] T-shirt twice, with assets tagged on one or the other. This happens when options were created by hand, renamed, or created by an older configuration.

What it does

For one metaproperty, the job groups the options whose label starts with the same identifier between brackets, for example [TS01]. In each group:

  1. the valid option is the one whose external reference is an existing Akeneo product or product model;
  2. every asset tagged with another option of the group is tagged with the valid option instead;
  3. the other options are deleted from Bynder.

A group without any valid option is left untouched and reported in the logs.

This requires options labelled with the identifier prefix: enable Prefix the option label with the product identifier in the Create options job.

Configure it

The configuration of this job is edited as JSON:

{
  "bynder_metaproperty_name": "sku",
  "ids": "123456,789012"
}
KeyRequiredDescription
bynder_metaproperty_nameYesDatabase name of the metaproperty to fix
idsNoBynder option ids, separated by commas, to limit the run to a few options. Use it for a first test

Select the Bynder and Akeneo connections, save, then launch the job.

Check the result

Read is the number of options read, Processed the number of assets re-tagged, Deleted the number of options removed.

Clean up obsolete options

Job: Bynder x Akeneo - Clean up Bynder options created from Akeneo product data

When to use it

Products, product models or attribute values were deleted from Akeneo, but their options are still proposed in Bynder.

What it does

The job reads the configuration of a Create options job, then, for each metaproperty that job fills:

  1. it lists the identifiers and values that still exist in Akeneo;
  2. it finds the Bynder options that match none of them;
  3. it removes those options from the assets (and optionally flags the assets), then deletes the options.

An option is kept as soon as its external reference or its name matches an Akeneo value. The comparison ignores case, spaces at both ends and HTML entities, so a formatting difference never deletes an option.

A metaproperty is skipped, with a warning, when its values cannot be compared reliably (for example a reference entity sent through an option attribute).

Configure it

FieldDescription
Source job instanceThe Create Bynder options from Akeneo product data job whose options you clean. Its connections and mappings are reused
Metaproperties to clean upLeave empty for all the metaproperties of the source job, or pick some
Flag the media carrying an obsolete option before detaching itOptional. Writes a value on the assets that lose an option, so you can find them in Bynder
Bynder field or metaproperty / ValueThe field and value written on those assets. For a select metaproperty, use the option name
Dry runEnabled by default: nothing is changed in Bynder, the job only reports what it would do

Run it safely

  1. Keep Dry run enabled and launch the job.
  2. Read the execution: Would be deleted (dry run) counts the options that would be deleted; the logs list them.
  3. If the list is right, disable Dry run, save and launch again. Deleted counts the options removed.