Loading
Ongoing maintenance for Salesforce HelpRead More
The Trailblazer Community is now read-only Read More
Get Started with B2C Commerce
B2C Commerce CSV File Technical Details

B2C Commerce CSV File Technical Details

Reference information about CSV file structure, special characters, Excel formatting, and injection protection for B2C Commerce catalogs.

CSV File Structure and Column Headers

The column headers in your CSV file represent your products' attributes. The header format depends on the attribute type:

  • A standard attribute contains only the attribute name.
  • A custom attribute begins with c__, for example, c__fabric.
  • A site-specific attribute ends with __siteID, for example, fragrance__globalsite.
  • A localized attribute ends with __locale, for example, color__en.

Special Character Handling in Multi-Value Cells

When a cell contains multiple values, B2C Commerce uses semicolons to separate them. If a value itself contains a semicolon or backslash, B2C Commerce adds escape characters so the import process can read the value correctly.

  • Semicolons in values: B2C Commerce adds a backslash before the semicolon. For example, values a;1, a;2, and a;3 appear as a\;1;a\;2;a\;3.
  • Backslashes in values: B2C Commerce adds another backslash. For example, values a\1, a\2, and a\3 appear as a\\1;a\\2;a\\3.

Empty Cells During Import

The import ignores empty cells. If you delete a value from a cell, the catalog keeps the original value instead of replacing it with null.

Excel and Encoding Considerations

Microsoft Excel changes the format of certain values, which can cause issues when you import the file back into Business Manager:

  • Excel removes leading zeros, so product IDs that start with zero display incorrectly.
  • Excel converts long numeric values to scientific notation.

Be aware of these changes if you plan to edit your CSV in Excel before importing. See Import Your B2C Commerce Catalog Using a CSV File.

Injection Attack Protection

To protect your site from formula injection attacks, B2C Commerce inserts a zero-width joiner (ZWJ) character before any value that begins with =, +, -, or @. The ZWJ is invisible and B2C Commerce removes it when you import the file.

 
Loading
Salesforce Help | Article