Commerce Foundation StoreProfile CommerceQuery
The StoreProfile Commerce Server 2009 commerce entity provides query operation capability for the Commerce Server StoreObject profile. The StoreProfile Commerce Server 2009 commerce entity supports the query operation via the QueryOperation_StoreProfile message handler definition.
Syntax
var queryStoreProfile = new CommerceQuery<CommerceEntity>("StoreProfile");
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 |
StoreProfileResponseBuilder |
Responsible for creating the response for operations targeting a store profile |
StoreProfileAddressesResponseBuilder |
Responsible for populating an operation response based on related address profile |
Valid Query Operations
Related Operation |
Description |
---|---|
SearchCriteria.Model.Id |
Always returned. You can use this related operation to request a specific profile by user ID. |
SearchCriteria.ModelName |
An exception will be thrown if any model type other than UserProfile is specified. |
Note: You must specify either the Model.Id or the ModelName, not both.
Valid Related Query Operations
CommerceQueryRelatedItem<Address> (Address)
Related Operation Parameter |
Description |
---|---|
SearchCriteria.Id |
When requesting the related address, the Id field may be populated or left blank. If left blank, all addresses for the user will be returned; otherwise, only the address with the specified Id will be returned. |
CommerceQueryRelatedItem<Address> (PreferredAddress)
Related Operation Parameter |
Description |
---|---|
SearchCriteria.Id |
When requesting the related address, the Id field may be populated or left blank. If left blank, all addresses for the user will be returned; otherwise, only the address with the specified Id will be returned. |
Exceptions
Microsoft Multi-Channel Commerce Foundation can throw the following exception during this operation:
- FaultException<GeneralOperationFault>