Connect cartridge release notes

The Connect cartridge (link_constructor_connect) syncs your Salesforce B2C Commerce catalog to Constructor. You can download it from the Salesforce AppExchange listing.

To see which version you have installed, open cartridges/link_constructor_connect/cartridge/scripts/constants/version.js in your cartridge code.

5.0.3

  • Added the ReplicateToConnectionSlugs parameter to the Constructor.SyncProducts and Constructor.PatchProducts jobs. Set it to a comma-separated list of connection slugs, and the cartridge replicates the feed to those connections when the sync completes.

5.0.2

  • The duplicate detection added in 5.0.1 now works on catalogs of any size. Before, it could hit the Salesforce api.dw.util.collectionSize quota, which limits a single collection to 20,000 elements.

5.0.1

  • Fixed duplicate products in syncs. In some catalog setups, the Salesforce product search returns the same product more than once. The cartridge now skips the duplicates, so each product and its variants are sent only once.

5.0.0

  • Added support for one Index key per locale. You can now set the Constructor_ApiKey site preference to a JSON object of locale and key pairs:

    {
      "en_US": "key_xxxxxxxxxx",
      "en_GB": "key_yyyyyyyyyy",
      "fr_FR": "key_zzzzzzzzzz"
    }
  • Cartridge jobs pick the Index key that matches the locale set on the job step.

❗️

Breaking change: set up your Index key again

Uploading the new metadata file clears the Constructor_ApiKey site preference. Set it up again after the upload.

4.3.1

  • Removed the facets key from catalog syncs.
❗️

Move your facets into metadata

Since November 2024, facets are no longer sent with the catalog. Move all your facets into metadata attributes. Once uploaded, you can configure facets in the Constructor dashboard or with the facets API.

4.3.0

  • Added a force flag to the Constructor.SyncProducts and Constructor.PatchProducts jobs. When it is true, the sync does not fail even if it updates a large part of the catalog.

4.2.0

  • Last sync dates are stored in the Constructor_LastSyncDates site preference again, as a JSON string, instead of a custom cache. Salesforce can clear custom caches at any time, for example when the code version changes.
  • When several servers run jobs at the same time, the cartridge retries the preference update up to 5 times, with a random and growing delay between tries.
🚧

Manual updates necessary

Re-upload the metadata zip file to add the Constructor_LastSyncDates site preference back.

4.1.3

  • Fixed the default values of boolean fields in steptypes.json. Newer Salesforce versions need them defined as strings.

4.1.2

  • Fixed the .properties filename in the overlay cartridge to match its folder name.

4.1.1

  • Fixed an issue where the cartridge completed the feed and ingested the data even when the job failed, if at least one chunk had been sent.
❗️

Update recommended

We highly recommend updating to this version or later to avoid data integrity issues.

4.1.0

  • Last sync dates are stored in Custom Caches instead of one site preference, so each server keeps its own and parallel jobs don't overwrite each other. Version 4.2.0 reverts this change.
🚧

Manual updates necessary

  • Re-upload the metadata zip file. This removes the old Constructor_LastSyncDates site preference.
  • Turn on Custom Caches in Administration > Operations > Custom Caches. Partial syncs don't work without them.

4.0.2

  • In the ProductReader, you can now override a master product's variants before the cartridge reads and transforms it.

  • Any reader can now return a data object with values you compute once. The cartridge passes it to every transformer in a new data argument. This helps when a value depends only on the master product and you don't want to compute it again for each variant. For example, overlay the ProductReader.readNextLine result:

    return {
      record: product,
      valid: true,
      data: { foo: 'bar' } // <- passed to the transformer
    }

4.0.1

  • Internal improvements to the performance metrics collected when jobs run.

4.0.0

Version 4 is the SFRA cartridge. It is faster and more stable, and it has many breaking changes.

  • The cartridge no longer uses the file system. All work happens in memory.
  • Jobs now use the Salesforce chunk-oriented job architecture. Each job is a single step, and Salesforce shows its progress (for example, 8000 of 10000 was processed.).
  • API requests are retried, 3 times by default.
  • Job names changed:
    • ConstructorSyncProductData is now Constructor.SyncProducts.
    • ConstructorSyncInventoryData is now Constructor.PatchProducts.
    • ConstructorSyncCategoryData is now Constructor.SyncCategories.
  • The ingestion strategy is now set on the job step. The Constructor_ProductIngestionStrategy, Constructor_CategoryIngestionStrategy and Constructor_InventoryIngestionStrategy site preferences were removed. Categories always run a full sync. If a sync runs with filters, the cartridge falls back to a delta ingestion so it doesn't erase the catalog.
  • Product transformations are split into small files, so you can overlay only the function you need, such as scripts/helpers/products/getUrl.js. Facets and metadata are built by one function, with one version for master products (getFacetsAndMetadata.js) and one for variations (getFacetsAndMetadataForVariation.js).
  • Custom jobs must use the new SyncAgent helper. Older custom jobs don't work, because the cartridge now uses new endpoints. See scripts/jobs/syncProducts.js for an example.
🚧

Manual updates necessary

  1. Download the new cartridge version and upload it to your instance.
  2. Upload and import the metadata zip file to create the new jobs.
  3. Copy the job step settings and the schedules from the old jobs to the new ones.
  4. Delete the old jobs.
  5. Move your customizations to the link_constructor_connect_custom overlay cartridge, and port any custom jobs to SyncAgent.

For the full walkthrough, see Migrating from the Site Genesis cartridge to SFRA cartridge.

📘

Site Genesis versions

Versions 3.1.0 and earlier are the Site Genesis cartridge, which is maintained as a legacy product. To move to the SFRA cartridge, see Migrating from the Site Genesis cartridge to SFRA cartridge.

3.1.0

3.0.2

  • Removed all relative require statements, so files can be overlaid correctly.
  • Added the link_constructor_connect_custom overlay cartridge. Use it as the starting point for your customizations.

3.0.0

  • Added the SendOfflineVariants option to the writeFiles step of the products and inventory jobs. By default, the cartridge sends all variants of a master product if the product or any of its variants is online. Turn the option off to send only online variants, which means fewer API calls.
  • Added partial syncs. Turn on the PartialByLastSyncDate option in the writeFiles step of the products and inventory jobs, and the cartridge sends only the products or inventory changed since the last sync that ran without filters.
    • Last sync dates are stored in UTC, one per locale, in the new Constructor_LastSyncDates site preference.
    • For inventory, the cartridge uses the inventory update date instead of the product date.
  • If the site uses Full (Replace) ingestions but a sync has filters or is a partial sync, the cartridge switches to Patch (Update) so it doesn't erase items.
  • Fixed the ingestion types, so you can use Patch (Update).
💡

Run a full sync regularly

Partial syncs are much faster, but you should still run a full sync from time to time (for example, weekly) to keep your data correct.

If you change data that isn't part of a product, such as search refinements, promotions, or campaigns, run a full sync or clear the last sync date in the cartridge preferences.

2.0.1

  • Added support for multiple locales in categories and products. Set the locale ID (for example, en_US or en_CA) in the Locale parameter of the writeFiles step. If the locale has no data, the cartridge uses the default locale.

2.0.0

  • Job steps can now run in parallel, for example to send several locales from one site to different Constructor indexes.
  • Job steps can now share information through stepExecution.jobExecution.context.
  • Added an option to delete files after the feeds are sent, besides keeping or archiving them.
  • Added options to set the folders the cartridge reads from and writes to.

1.6.6

  • Added a Section parameter to the sendProductDeltas and sendInventoryDeltas steps. The cartridge passes it to the Constructor API.

1.6.5

  • Removed unused category data, so the category job runs a bit faster.
  • Added a data field to categories, so you can send category metadata.

1.6.4

  • Added a setting to the products and inventory jobs to include master products that are out of stock (not available to order).
  • Lowered the maximum API chunk size to 1,000 records, for smaller and more reliable requests.

1.6.3

  • Inventory syncs now include all variations.

1.6.2

  • You can now set the ingestion strategy from new site preferences, one each for products, categories, and inventory. Products default to Full (Replace), and inventory defaults to Patch Delta (Fail in case of additional items).
  • Improved error logging.

1.6.1

  • Product transformations now fall back to other values when some fields are empty.
  • Improved how product images are read.

1.6.0

  • The cartridge now sends one description field instead of longDescription and shortDescription. Jobs run faster and send less data.
  • Improved image support. The cartridge now checks several image view types to find the product image.
❗️

Breaking change: description fields

If your setup reads longDescription or shortDescription, switch it to description.

1.5.0

  • Removed the Constructor_ToggleCategorySync attribute, because categories and products now have separate jobs. To skip categories, don't run the category job.

1.4.0

  • Added filters to the sync products and sync inventory jobs:
    • SearchPhrase: syncs only the products that match a search query. Defaults to an empty string.
    • CategoryId: syncs only the products in or below a category. Defaults to the root category.
    • Ids: syncs only a comma-separated list of IDs. It works with simple products, master products (with all their variants), variation groups, and product sets. It doesn't work with product bundles or variant IDs.

1.3.0

  • Jobs now use custom job steps, and are split into three jobs: ConstructorSyncProductData, ConstructorSyncCategoryData and ConstructorSyncInventoryData. You can now control products, categories, and inventory separately.
  • Added a FileAction parameter to the steps that send deltas:
    • ARCHIVE (default) moves the generated files to the archive folder when the job ends.
    • KEEP leaves the files where they are.
    • If the job fails, the files move to the error folder.

1.2.0

  • Product searches now include all variants, whether they're categorized or not. Jobs take longer as a result.

1.1.0

  • Added a job that syncs only inventory changes. You can run it often, because it doesn't send the whole catalog.
  • Added the Constructor_ToggleCategorySync toggle to turn off the category sync.
  • Faster syncs: the cartridge now reads products through the Product Index and skips offline products.

1.0.0

  • First version, with a job that syncs catalog data from Salesforce to Constructor.

Did this page help you?