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
ReplicateToConnectionSlugsparameter to theConstructor.SyncProductsandConstructor.PatchProductsjobs. 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.collectionSizequota, 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_ApiKeysite 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 againUploading the new metadata file clears the
Constructor_ApiKeysite preference. Set it up again after the upload.
4.3.1
- Removed the
facetskey from catalog syncs.
Move your facets into metadataSince November 2024, facets are no longer sent with the catalog. Move all your
facetsintometadataattributes. Once uploaded, you can configure facets in the Constructor dashboard or with the facets API.
4.3.0
- Added a
forceflag to theConstructor.SyncProductsandConstructor.PatchProductsjobs. When it istrue, 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_LastSyncDatessite 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 necessaryRe-upload the metadata zip file to add the
Constructor_LastSyncDatessite preference back.
4.1.3
- Fixed the default values of
booleanfields insteptypes.json. Newer Salesforce versions need them defined as strings.
4.1.2
- Fixed the
.propertiesfilename 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 recommendedWe 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_LastSyncDatessite 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
dataobject with values you compute once. The cartridge passes it to every transformer in a newdataargument. 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 theProductReader.readNextLineresult: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:
ConstructorSyncProductDatais nowConstructor.SyncProducts.ConstructorSyncInventoryDatais nowConstructor.PatchProducts.ConstructorSyncCategoryDatais nowConstructor.SyncCategories.
- The ingestion strategy is now set on the job step. The
Constructor_ProductIngestionStrategy,Constructor_CategoryIngestionStrategyandConstructor_InventoryIngestionStrategysite 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
SyncAgenthelper. Older custom jobs don't work, because the cartridge now uses new endpoints. Seescripts/jobs/syncProducts.jsfor an example.
Manual updates necessary
- Download the new cartridge version and upload it to your instance.
- Upload and import the metadata zip file to create the new jobs.
- Copy the job step settings and the schedules from the old jobs to the new ones.
- Delete the old jobs.
- Move your customizations to the
link_constructor_connect_customoverlay cartridge, and port any custom jobs toSyncAgent.For the full walkthrough, see Migrating from the Site Genesis cartridge to SFRA cartridge.
Site Genesis versionsVersions 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
- Added SFCC TypeScript types to the cartridge, for better code completion in your editor.
3.0.2
- Removed all relative
requirestatements, so files can be overlaid correctly. - Added the
link_constructor_connect_customoverlay cartridge. Use it as the starting point for your customizations.
3.0.0
- Added the
SendOfflineVariantsoption to thewriteFilesstep 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
PartialByLastSyncDateoption in thewriteFilesstep 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_LastSyncDatessite preference. - For inventory, the cartridge uses the inventory update date instead of the product date.
- Last sync dates are stored in UTC, one per locale, in the new
- If the site uses
Full (Replace)ingestions but a sync has filters or is a partial sync, the cartridge switches toPatch (Update)so it doesn't erase items. - Fixed the ingestion types, so you can use
Patch (Update).
Run a full sync regularlyPartial 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_USoren_CA) in theLocaleparameter of thewriteFilesstep. 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
Sectionparameter to thesendProductDeltasandsendInventoryDeltassteps. 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
datafield 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 toPatch 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
descriptionfield instead oflongDescriptionandshortDescription. 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 fieldsIf your setup reads
longDescriptionorshortDescription, switch it todescription.
1.5.0
- Removed the
Constructor_ToggleCategorySyncattribute, 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,ConstructorSyncCategoryDataandConstructorSyncInventoryData. You can now control products, categories, and inventory separately. - Added a
FileActionparameter to the steps that send deltas:ARCHIVE(default) moves the generated files to the archive folder when the job ends.KEEPleaves 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_ToggleCategorySynctoggle 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.
Updated about 4 hours ago