This page is for customers, implementation partners, and ERP integration partners who want dealers to order parts for a specific machine or installation. It explains the dealer experience, the configuration required, and the data to supply from the ERP system. Use it to assess whether this functionality fits your use case.
Preview - activation on request
This functionality is not available by default and cannot be enabled independently. As a partner, request activation from OrderCentral through your usual contact or support channel. Discuss your intended use case, target environment, and access security.
This page describes the intended Preview to help you prepare your request, including the planned change to make the serial number filter use the same parts source as the asset page:
Asset.welisacommerce__Orderable_Parts__c. This does not confirm that the change is available in your environment. Capabilities, settings, and data contracts may change during the Preview. Agree on the configuration and integration contract with OrderCentral before using them.
Requesting and preparing for the Preview
A clear description of your use case helps OrderCentral agree with you on the activation and configuration required.
- Decide whether dealers should order parts from the asset page, through a serial number filter in the catalog, or through both routes.
- Identify the ERP data available: dealer accounts, assets, serial numbers, product codes, and parts lists.
- Contact OrderCentral and request activation of Preview: assets and orderable parts. Include the customer, target Salesforce environment, Experience Cloud site, and required routes.
- Describe which dealers may access which assets and whether the relationship between a serial number and its parts must also be restricted.
- Agree with OrderCentral on availability, the required version, configuration, and test approach. Also agree on any additional access controls required.
- After confirmation and activation, complete the agreed configuration and integration tests before making the functionality available to dealers.
You can prepare the data mapping and example payloads in advance. The configuration steps below do not activate the Preview themselves.
What can dealers do?
An asset is a registered individual item, such as a delivered machine or installation. A recognizable name and serial number help the dealer select the correct item and view its associated parts.
The supplier determines which assets are available and which parts belong to them. Existing pricing, availability, and ordering rules continue to apply.
Ordering from the asset page
This route helps dealers check the machine first and then select the correct parts.
- Sign in to the dealer portal.
- Open the asset overview configured by your supplier. Its name and menu location may vary between portals.
- Open the correct asset and check its name and serial number.
- View Orderable Parts, or the localized title configured by your supplier.
- Select an option and quantity where required, then add the product to the shopping cart.
- Are additional selections required? Open the product details, complete the configuration, and add the product there.
- Review the shopping cart and follow the usual checkout process.
Adding a product to the cart does not place an order. Dealers can adjust the cart or leave checkout before completing the order.
Finding parts by serial number
If the serial number filter has been configured separately, dealers can find the associated parts directly from the catalog.
- Open the product catalog.
- Enter the complete serial number in the designated filter, for example Serial number.
- Press Enter or leave the input field to apply the filter.
- Review the parts found and add the required products to the cart.
- Clear the filter to view the other catalog products again.
This route matches the complete serial number, not part of it. The global search bar at the top of the portal does not automatically support this route.
Two routes, one parts source
Use this distinction to determine the ERP data and configuration required.
| Route | Required data and configuration |
|---|---|
| Asset page | A list of product codes in Asset.welisacommerce__Orderable_Parts__c and the Asset - Orderable Parts Experience Builder component on the asset detail page. |
| Serial number filter in the catalog | A catalog filter finds the asset through Asset.SerialNumber and uses the product codes from Asset.welisacommerce__Orderable_Parts__c on that same asset. |
Both routes use the same product code JSON on Asset. No Web Product List, list entries, or lookup to a product list is required for this use case.
The integration therefore maintains the parts once per asset. The serial number filter still needs to be activated and configured separately; populating the JSON alone does not make the filter visible.
Configuring the dealer portal after activation
These steps are for the Salesforce administrator or implementation partner, after OrderCentral has activated the Preview and agreed on the configuration with you.
1. Check the prerequisites
Checking prerequisites prevents dealers from being able to view assets but unable to order their parts.
- Dealers can sign in to the Experience Cloud site and have the required OrderCentral buyer permissions.
- The external user license supports access to the Salesforce Asset object.
- Assets are linked to the agreed dealer account.
- Parts exist as active Web Products with the correct related Salesforce products.
- Prices are available in the applicable price books and currencies.
- The administrator can manage object permissions, field permissions, record sharing, and Experience Builder.
2. Grant access to the correct dealer
Object permissions and record sharing make a dealer's own assets accessible without exposing other dealers' assets.
- Give dealers read access to Asset and the fields used, including name, serial number, and Orderable Parts.
- Configure record sharing appropriate to your external user license and account model. Populating
AccountIdalone does not automatically grant access. - Provide an asset overview and navigation link in the site, with a route to the asset detail page.
- Use a dealer login to test that the intended assets can be opened.
- Also test a direct link to another dealer's asset. It must not grant access.
The parts component does not create an asset overview, navigation menu, or sharing rules itself. The serial number route also requires the checks described in Preview limitations and access security.
3. Configure the asset page
The parts component turns the asset detail page into a starting point for parts orders.
- Open the site in Experience Builder.
- Open or create the record detail page for Asset.
- Display recognizable asset information, such as name and serial number.
- Add Asset - Orderable Parts.
- Bind Record Id to the current page record:
{! recordId }. Do not use a fixed asset ID on a shared detail page. - Set Title, for example to Orderable parts.
- Configure sorting and stock display if required.
- Check the page in the Builder preview. Do not publish yet if you do not want to release the changes.
- After checking, publish and test with a dealer login, including adding a product to the cart.
| Setting | Meaning in the current Preview |
|---|---|
| Record Id | The asset whose parts are retrieved. |
| Title | The heading above the parts list. |
| Allow sorting | Displays the sorting control. |
| Sort Order | alphabet-asc or alphabet-desc. Check the effective order when URL sorting settings are present as well. |
| Enable stock | Enables stock display; a working stock configuration is still required. |
| View Type / User can toggle view | The asset component uses a fixed grid view. Leave the view toggle disabled; do not assume switching to List, Table, or Tile is supported. |
Price visibility follows the View pricing permission. Linking parts does not grant additional pricing or ordering permissions.
4. Optionally configure the serial number filter
This separate configuration lets the catalog find an asset by serial number and use the product codes from Asset.welisacommerce__Orderable_Parts__c. Agree on the final filter settings for this planned behavior with OrderCentral.
- Ask OrderCentral to confirm that the serial number route using the shared JSON source is available in the target environment.
- Have the integration maintain the complete serial number and product code JSON for each asset.
- In consultation with OrderCentral, configure a visible catalog filter on
Asset.SerialNumber. The parts source isAsset.welisacommerce__Orderable_Parts__c, not a product list lookup. - Verify that the catalog actually uses the filter group, including any category overrides.
- Save the configuration, publish any page changes, and test with a complete serial number.
Adding only a text field to Web Product is not sufficient: the filter must find the asset and use the JSON on that asset.
Configuring through Custom Metadata Types
Add the filter to the existing product filter group to avoid introducing an unintended second default group.
-
Go to Setup > Custom Metadata Types.
-
Under Field Set Definition, click Manage Records and open the filter group used by the catalog. Check that Type (
Type__c) is set toproduct_filter. -
Note the group's Developer Name. The supplied default group is named
product_filter_default; a customer-specific or category-specific group may have a different name. For a category group, also check its assignment to the relevant category. -
Under Field Set Item, click Manage Records and create a record, for example with the label Serial number and Developer Name
asset_serial_number. -
Populate the record as follows:
Label / API field Value Field Set Definition / Field_Set_Definition__cThe product filter group actually used Active / Active__cEnabled Object / Object__cAssetField / Field__cSerialNumberon AssetOrder / Order__cAn appropriate position within the group, for example 1Hide In User Interface / Hide_In_User_Interface__cDisabled Web Product List Field / Web_Product_List_Field__cEmpty for the planned JSON route -
Save the record and check the filter in the catalog using a dealer login. Test the complete serial number, the parts found, and access restrictions.
Field refers to the search field SerialNumber, not to welisacommerce__Orderable_Parts__c. The modified filter implementation reads the parts JSON from the asset found. Do not create a new metadata field for this, and do not populate Web Product List Field with welisacommerce__Orderable_Parts__c: that field is intended for the old product list relationship.
Example for metadata deployment
Partners managing configuration in source can include a record under customMetadata/ with the filename Field_Set_Item.asset_serial_number.md-meta.xml. This example uses the existing product_filter_default group and API names without a package prefix:
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>Serial number</label>
<protected>false</protected>
<values>
<field>Field_Set_Definition__c</field>
<value xsi:type="xsd:string">product_filter_default</value>
</values>
<values>
<field>Active__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>Object__c</field>
<value xsi:type="xsd:string">Asset</value>
</values>
<values>
<field>Field__c</field>
<value xsi:type="xsd:string">SerialNumber</value>
</values>
<values>
<field>Order__c</field>
<value xsi:type="xsd:double">1.0</value>
</values>
<values>
<field>Hide_In_User_Interface__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>Web_Product_List_Field__c</field>
<value xsi:nil="true"/>
</values>
</CustomMetadata>
For a managed-package installation, first retrieve an existing filter item and the filter group used from the target org. Follow their namespace conventions for the metadata type, fields, and group reference. Asset and SerialNumber are standard names and do not receive a package prefix. When updating, use the existing record name to avoid creating a duplicate filter.
Deploy the record through your usual Salesforce metadata workflow. Do not recreate a default group if it already exists. After deployment, recheck the active filter group, any category overrides, and the results as a dealer.
Supplying data from the ERP system
This section is for the integration partner. The examples describe the intended Preview contract with a shared parts source; agree on this with OrderCentral before implementation.
Objects, keys, and mapping
The names below are shown without a managed-package prefix. For package objects and fields, use the actual API names from the target org, including the namespace where applicable. Standard objects and fields do not receive a package prefix.
| Object / field | Data to supply |
|---|---|
Account |
Dealer account with a stable mapping between the ERP dealer ID and Salesforce Account ID. |
Asset.Name |
Recognizable name of the delivered item. |
Asset.AccountId |
The agreed dealer account; record sharing is configured separately. |
Asset.SerialNumber |
Complete serial number, preserving details such as leading zeros. |
Asset.Product2Id |
Optional reference to the machine's own product; this is not the parts list. |
Asset.welisacommerce__Orderable_Parts__c |
Shared product code JSON for the asset page and serial number filter. Long Text Area with a maximum of 131,072 characters. |
Product2.ProductCode |
Product code matching the codes in the parts JSON exactly. |
Web_Product__c.Related_Product__c |
Reference to the Product2 record with the relevant product code. |
Web_Product__c.Active__c |
Active for inclusion through product code selection. |
Also configure a unique External ID on Asset in advance, for example ERP_Asset_Id__c. This is an example field that you must arrange to have created. A product list lookup and keys for list entries are not needed for this use case.
Product code JSON for both routes
Write a JSON object with exactly the key productCodes in Orderable Parts:
{
"productCodes": ["PART-001", "PART-002"]
}
Apply these rules:
- The top level is an object, not an array.
productCodesis an array of strings. - Do not add extra keys, including a version, serial number, or description. An object with extra keys is rejected as a parts source.
- Use
Product2.ProductCode, not a Salesforce record ID, serial number, or key known only to the ERP system. - Leading and trailing spaces are removed. Empty strings are ignored and duplicate codes are deduplicated.
- Non-string values are ignored. Flag these as input errors in the integration.
- The catalog processes only the first 1,000 unique, non-empty codes. Block or escalate larger lists in the integration to prevent incomplete selections.
- Use
{"productCodes":[]}when an asset intentionally has no orderable parts.
A code selects active Web Products through the directly related Product2 record. Other catalog filters, price books, and currencies further restrict the results. Do not assume ProductCode is unique: multiple related active Web Products can produce multiple results.
Test configurable and grouped products separately. A code belonging only to an underlying variant or bundle component does not automatically select the parent Web Product.
Loading order and API choice
Load referenced records first to prevent incomplete asset relationships.
- Dealer accounts: upsert accounts and store the Salesforce ID mapping.
- Products and prices: load Product2, Web Products, and prices. Verify
ProductCodeandRelated_Product__cafter processing. - Assets: upsert the name, dealer account, serial number, and product code JSON in
welisacommerce__Orderable_Parts__c. - Verification: read the records back and check both routes using a dealer login.
For Asset and the related Salesforce records, use the standard Salesforce REST, Composite, or Bulk API, as appropriate for the volume and transactions. The Preview does not introduce a separate ERP import endpoint for assets.
For product management, you can use the existing OrderCentral product API. Verify that an external SKU key actually matches the required Product2.ProductCode; do not assume this without checking.
Use a dedicated integration user with the required object and field permissions, and an API version supported by your target org and integration.
Example: upserting an asset
This example uses a previously configured External ID, ERP_Asset_Id__c. Replace placeholders and adjust package field names to match the target org.
PATCH /services/data/vXX.X/sobjects/Asset/ERP_Asset_Id__c/ERP-ASSET-10042
Content-Type: application/json
Authenticate the request through your configured Salesforce OAuth connection.
{
"Name": "Machine MX-200",
"AccountId": "<salesforce-dealer-account-id>",
"SerialNumber": "SN-2026-0042",
"welisacommerce__Orderable_Parts__c": "{\"productCodes\":[\"PART-001\",\"PART-002\"]}"
}
Orderable Parts is a text field. Its content is therefore sent as a JSON string with escaped quotation marks, not as a nested JSON object. This single value supplies the parts for both routes.
A Salesforce upsert normally returns 201 when creating a record and 204 when updating one. An empty response with 204 is not an error. For Composite and Bulk processing, also check the results for each subrequest or record.
Handling changes and errors
Keep both routes up to date so that obsolete parts do not remain in an old asset selection.
- Validate keys, JSON structure, field length, code count, references, and serial number conflicts before sending.
- Update existing records using stable keys or stored Salesforce IDs.
- Replace the JSON with the complete desired parts collection; do not keep appending codes only.
- If there are no parts left, write an empty productCodes array. This change applies to both routes.
- Prevent unintended partial updates through appropriate atomic processing, or recovery and reconciliation for larger batches.
- Log API errors with the ERP key, target record, and error message. Retry temporary failures in a controlled manner; resolve input and permission errors first.
- When an asset moves to another dealer, check both
AccountIdand record sharing.
Preview limitations and access security
Consider these limitations when assessing the Preview and discuss them when submitting your request.
| Topic | Current behavior and considerations |
|---|---|
| Dealer-specific serial number access | A shared parts source does not guarantee access control. The existing serial number route has no explicit dealer account condition and does not apply record sharing when looking up the asset. Ask OrderCentral to confirm server-side authorization for the modified route and test it before exposing confidential or dealer-specific relationships. |
| Non-unique serial numbers | Flag conflicts between assets in the integration. Agree with OrderCentral on how the modified route handles multiple matches; do not assume merging or a predictable selection. |
| Search | The serial number filter uses the complete number. Global search is not automatically extended. |
| Parts display | The asset component uses a fixed grid view. The description column does not yet contain a product description. The columns do not follow the configurable Product Table columns. |
| Empty selection | Invalid JSON or an error reading the asset can appear as an empty parts list without a specific configuration error for the dealer. Monitor this through integration and administration checks. |
| Price and stock | Price visibility requires permissions; stock requires activation and a working stock configuration. Normal product availability rules still apply. |
| Order context | Ordering from an asset does not automatically create a service order or include the asset ID or serial number on the order. Configure this separately if your process requires it. |
A hidden filter or a serial number that is difficult to guess is not a substitute for authorization. Also test with a known serial number belonging to another dealer.
Validation before rollout
After activation, run at least these scenarios in a test environment. Agree on the results with OrderCentral before making the Preview available to dealers.
| Scenario | Expected result |
|---|---|
| Asset with PART-001 and PART-002, both active and priced | The asset page displays the intended products. |
| The same asset through its complete serial number | The catalog displays the same desired parts, taking other filters into account. |
| JSON present without a product list lookup | Both configured routes use the product codes from the same asset; no product list is required. |
| Empty array or invalid JSON | Neither route displays an unrestricted catalog; the integration flags invalid input. |
| 1,000 versus 1,001 unique codes | 1,000 is the processing limit; the integration blocks or escalates larger lists. |
| Product without an active relationship or applicable price | The product does not appear as a normally available part in the selection. |
| Adding and removing a part | The changes are visible in both routes after synchronization. |
| Repeating synchronization | No duplicate assets. |
| Duplicate serial number across multiple assets | The integration reports the conflict; filter handling follows the agreement with OrderCentral. |
| Dealer A attempts to access dealer B's asset or serial number | The implementation meets the agreed access restrictions, including additional checks for the serial number route where required. |
| Change of dealer | The previous dealer no longer has unintended access. |
| Ordering | Pricing, options, shopping cart, and checkout work; any asset context on the order has been checked separately. |
Troubleshooting
Use these checks to distinguish between access, source data, and catalog configuration issues.
| Problem | Check |
|---|---|
| The component is unavailable | First confirm with OrderCentral that the Preview has been activated in the target environment. |
| A dealer cannot open an asset | License, object permissions, field permissions, record sharing, and navigation. |
| The parts list is empty | Record Id, read access to Orderable Parts, JSON contract, product codes, and applicable prices. |
| The asset page works but the serial number filter does not | Availability of the modified route, complete serial number, asset access, and active filter group. |
| The serial number filter works but the asset page does not | Record Id, read access to the shared product code JSON, and the parts component. |
| A price or ordering action is missing | Pricing and ordering permissions, product availability, and any required product configuration. |