You first need to ensure that the following processes are active in the Flow and Process builder in Salesforce:
Create Consignment and Shipping Labels
Create Consignment and Shipping Labels - Manual Launch
Create Order Summary and Fulfillment Order
Deallocate Consignment - Manual Launch
Update Fulfillment Order Product.
Proceed as follows.
Click Activate on the Order record page to initiate the order management flow:
The order is generated and the following records are created automatically in Salesforce:
Now that you have created a Fulfillment Order, this can be referred to on the order's Related list, e.g.
If you wish to include return address details, tick the 'Include Return Address' checkbox on the Fulfillment Order object.
If you wish to create a Return (as opposed to a Delivery), tick the 'Return Order' checkbox. The shipping address is mandatory for a return order, and the 'Delivery To Address' is the warehouse address.
You can now change any details before connecting to the Metapack Shipping API. Once you have made all your changes, click Create Shipping Labels:
For the use of Create Shipping Labels and Delete Consignment in the above screenshot, refer to Interacting with the Metapack Shipping API.
The Consignment is created and the required details are captured from the Metapack Delivery Manager response, e.g. the Consignment code, Carrier name, etc.
These details are held on the object Consignment –
Once an Order has been created, together with an associated Fulfillment Order record, you can use the following two buttons on the Fulfillment Order object record to return and remove Metapack Shipping API labels:
Create Shipping Labels - Sends the Fulfillment Order record and related Shipment records to the Metapack Shipping API. Also creates an attachment with the shipping labels on the related Consignment record (refer to Creating a Consignment).
The following specific fields will need to be populated - otherwise, the process will fail. If these are not available, the process will automatically use the defaults in the custom metadata (refer to
XML Response Attribute).
Consignment Level Details Flag
You can also change the status on the Fulfillment Order record to ‘Despatched’ to generate the Shipping API labels.
Delete Consignment - Deallocates a Consignment record and deletes it from Metapack Delivery Manager. It also:
It does not delete the Consignment record within Salesforce. Instead, it keeps it linked to the Fulfillment Order record with a ‘Deleted’ status.