Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

User (B2B Commerce for Visualforce)

Represents a standard user object with custom fields that B2B Commerce for Visualforce adds.

Compatibility

This reference applies to:

Release Managed Package Version API Version
B2B Commerce for Visualforce Winter ’21 4.13 12
B2B Commerce for Visualforce Spring ’20 4.12 11
B2B Commerce for Visualforce Summer ’19 4.11 10
B2B Commerce for Visualforce Spring ’19 4.10 9
B2B Commerce for Visualforce Summer ’18 4.9 8

API Usage

Class used with: ccrz.ccApiUser

Fetch sizing: An API fetch query always evaluates the same fields for records of this object, regardless of any specific data size request in your input map.

Fields Added by B2B Commerce for Visualforce

Company Type
Options for the Company Type picklist on the Site Register page.
Usage Field Name Data Type
Input on object ccrz__CompanyType__c Picklist
Input or output with API (with any data size) companyType String
Contact Type Role
Optional role of the user in your organization.
Usage Field Name Data Type
Input on object ccrz__ContactTypeRole__c Picklist
Input or output with API (with any data size) contactTypeRole String
Currency
User's currency. This field is used in orgs that don't have multiple currencies enabled.

This field provides the value for the user's currency shown on the My Account page. If your solution integrates storefront users from another system, or if you create storefront users manually, make sure to supply a value for this field. Leaving this field blank can result in unexpected behavior when viewing currency information on the My Account page.

Tip

Usage Field Name Data Type
Input on object ccrz__CurrencyCode__c Text (30)
Input or output with API (with any data size) ccCurrencyCode String
Data ID
The managed package only uses this field internally. Your subscriber code's unit tests developed with the ccrz.ccApiTestData class can also reference this field.
Usage Field Name Data Type
Input on object ccrz__DataId__c Text (255)
Input or output with API (with any data size) The API doesn't return data for this field.
Tax Exempt
Whether the user is exempt from tax calculations during checkout.
Usage Field Name Data Type
Input on object ccrz__Tax_Exempt__c Checkbox
Input or output with API (with any data size) taxExempt Boolean
User Industry
Optional industry for the user.
Usage Field Name Data Type
Input on object ccrz__User_Industry__c Picklist
Input or output with API (with any data size) userIndustry String
User Salutation
User's salutation, which is specified from the Title field of the Site Register page.
Usage Field Name Data Type
Input on object ccrz__User_Salutation__c Picklist
Input or output with API (with any data size) userSalutation String