Loading...
Area: Optimizely B2B Commerce

Customer pipelines

Recommended reading 

CreateGetBillToResult

Order Pipe Description
100 CreateGetBillToResult

The BillTo property on the parameter object is transformed into a GetBillToResult. The result is stored in the GetBillToResult property on the result object.

200 CopyCustomPropertiesToResult Uses theHandlerBase to copy custom properties from theBillTo property on the parameter object to theGetBillToResult property on the result object.

CreateGetShipToResult

Order Pipe Description
100 CreateGetShipToResult TheShipTo property on the parameter object is transformed into aGetShipToResult. The result is stored in theGetShipToResult property on the result object.
200 CopyCustomPropertiesToResult Uses theHandlerBase to copy custom properties from theShipTo property on the parameter object to theGetShipToResult property on the result object.

FormatLabel

Order Pipe Description
100 FormatLabel The Customer property on the parameter object is transformed into a text value. The result is stored in the Label property on the result object.

GetBillToFieldProperties

Order

Handler

Description

100

GetBillToFieldProperties

Retrieves the bill-to address fields for the current website. Uses the address fields and the BillToId property on the parameter object to determine disabled and required fields. The values are stored in the DisabledFields and RequiredFields properties on the result object.

GetNextCustomerNumber

Order Pipe Description
100 GetNextCustomerNumber Determines the next availableCustomer.CustomerNumber. If thePrefix andFormat properties on the parameter object have values, it will determine the next available customer number using the provided values. If thePrefix andFormat properties on the parameter object DO NOT have values,AccountGeneralSettings.CustomerNumberPrefix andAccountGeneralSettings.CustomerNumberFormat are used to determine the next available customer number.

GetNextCustomerSequence

Order Pipe Description
100 GetNextCustomerSequence

Determines the next available Customer.CustomerSequence. Uses the CustomerNumber property on the parameter object, CustomerDefaultSettings.ErpShipToPrefix, and CustomerDefaultSettings.ErpShipToFormat to determine the next available customer sequence.

GetShipToFieldProperties

Order

Handler

Description

100

GetShipToFieldProperties

Retrieves the ship-to address fields for the current website. Uses the address fields and the BillToId and ShipToId properties on the parameter object to determine disabled and required fields. The values are stored in the DisabledFields and RequiredFields properties on the result object.

SetBillToInitialValues

Order Pipe Description
100 SetBillToInitialValues

Updates the BillTo property on the parameter object with a set of default properties.

  • If the AssignCustomerNumber property on the parameter object is true, uses the GetNextCustomerNumber pipeline to populate the Customer.CustomerNumber property.
  • If the BillTo.IsGuest property on the parameter object is true, uses the CustomerDefaultSettings.GuestErpCustomerId to populate the Customer.PricingCustomer and Customer.PricingCustomerId properties.

SetShipToInitialValues

Order Pipe Description
100 SetShipToInitialValues

Updates the ShipTo property on the parameter object with a set of default properties.

  • If the AssignCustomerSequence property on the parameter object is true, uses the GetNextCustomerSequence pipeline to populate the Customer.CustomerSequence property.
  • If the BillTo.IsGuest property on the parameter object is true, copies the BillTo.ErpSequence, BillTo.PricingCustomerId, and BillTo.PricingCustomer properties to the respective ShipTo properties.

GetAssignedBillTos

Order Pipe Description
100 GetAssignedBillTosQuery

Set result.AssignedBillTos collection.

200 ApplyExpands

Apply expands to result.AssignedBillTos.

300 GetSalespersonIds

Call GetSalespersonIds pipeline and assign result.SalespersonIds.

400 ApplyBillToFiltering

Apply filter IsBillToand & IsActive to result.AssignedBillTos.

500 ApplySalespersonFiltering

If result.SalespersonIds is set do filtering by PrimarySalespersonId for result.AssignedBillTos.

600 ApplyUserProfileFiltering

If result.SalespersonIds is not set filter result.AssignedBillTos by parameter.UserProfileId.

 

Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading