Freigeben über


Commerce Foundation StoreProfile CommerceCreate

The StoreProfile Microsoft Multi-Channel Commerce Foundation commerce entity provides create operation capability for the Commerce Server StoreObject profile. The StoreProfile Microsoft Multi-Channel Commerce Foundation commerce entity supports the create operation via the CommerceCreateOperation_StoreProfile message handler definition.

Syntax

        var createStoreProfile = new CommerceCreate<CommerceEntity>("StoreProfile");
      

Parameters

Name, Address and Preferred Address are required to create a Store Profile.

Operation Sequence Components

Operation Sequence Component

Description

StoreProfileLoader

Responsible for populating the operation cache with the Commerce Server profile objects

StoreProfileAddressesProcessor

Responsible for performing operations on addresses for a store

StoreProfileCommitter

Responsible for executing create and update operations

StoreProfileResponseBuilder

Responsible for creating the response for operations targeting a store profile

StoreProfileAddressesResponseBuilder

Responsible for populating an operation response based on related address profile

Related Operation

Description

CommerceCreateRelatedItem<Address> (Address)

Creates and adds a new address to the system. At a minimum, you need to specify the following information when creating an address:

PropertyDescription
AddressNameA user friendly name for this address.
Line1The streets address, PO Box, and so on.
StateProvinceCodeThe code for the state or province. For example, ON for Ontario.
ZipPostalCodeThe zip code or postal code.
CountryRegionCodeThe code for the country. For example, CA for Canada.

CommerceCreateRelatedItem<Address> (PreferredAddress)

Creates and adds a new preferred address to the system. At a minimum, you need to specify the following information when creating an address:

PropertyDescription
AddressNameA user friendly name for this address.
Line1The streets address, PO Box, and so on.
StateProvinceCodeThe code for the state or province. For example, ON for Ontario.
ZipPostalCodeThe zip code or postal code.
CountryRegionCodeThe code for the country. For example, CA for Canada.

Exceptions

Microsoft Multi-Channel Commerce Foundation can throw the following exception during this operation:

  • FaultException<GeneralOperationFault>

  • FaultException<ItemAlreadyExistsFault>

See Also

Other Resources

Commerce Foundation StoreProfile

CommerceCreate