Salesforce Objects

The following are the standard Salesforce objects used to interact with the Metapack Shipping API:

Shipment

This object holds the parcel records from the Metapack Shipping API.

Order

This object holds the order information that is to be sent to the Metapack Shipping API.

When the Order Status is set to active, a process will run, creating the Fulfillment Order and its related records.

Certain fields are required for successful creation of a Fulfillment Order. Refer to Creating a Consignment and the relevant Salesforce documentation.

Order Validation Rules
  • COD_Validation - Validates that all COD (Cash On Delivery) fields are populated if the COD flag is set to true.

  • Shipping_Address - Mandatory for Return Orders - refer to Creating a Consignment.

  • Recipient_Notification - The 'Recipient' fields that need to be completed depend on the Recipient_Notification Type.

  • Sender_Notification - The 'Sender' fields that need to be completed depend on the Sender_Notification Type.

Order Product

This object holds details of the Order line items and is used subsequently to generate details of the parcels to be sent to the Metapack Shipping API.

Order Delivery Group

This holds details such as the 'Delivery To Address', 'Order Delivery Method' (e.g. 'Booking code'), etc., that are sent to the Metapack Shipping API.

Order Summary

This object holds the order summary details that are to be sent to the Metapack Shipping API. These details are created from the Order.

Order Product Summaries

This object holds the order product summary details that are to be sent to the Metapack Shipping API. These details are created from Order Product.

Fulfillment Order

This object automatically sends information to the Metapack Shipping API via the Create Shipping Labels and Delete Consignment buttons. Refer to Interacting with the Metapack Shipping API.

Note

These buttons may need to be added to the Fulfillment Order page layout.

Validation Rules
  • FulfilledTo_Address - These details need to be populated, although the 'State' is optional.

  • Null_Hazard_Code - Hazard codes need to be included.

Fulfillment Order Product

This object holds the fulfillment order information that is to be sent to the Metapack Shipping API.

Note

Build process Update Fulfillment Order Product (refer to Activating your build processes) needs to be enabled in order for this object to be populated from Order Product.

Product

This object holds the product information that is to be sent to the Metapack Shipping API.

Validation Rules
  • Null_Product_Details - Mandatory product details are required, e.g. 'Product Code', 'Country of Origin', etc.

Location

This object holds the location information that is to be sent to the Metapack Shipping API.