1. Home
  2. Docs
  3. Guides
  4. Cas
Log a Case

Custom Address Source Ultimate Guide

A guide to mapping every field on the Custom Address Source

Create an Object Lookup

Before setting up a Custom Address Source, you will need to create a lookup relationship to the object from which you want to create the shipment.

NOTE: if you have several different use cases for one object please make sure to create a separate lookup relationship for each custom address source.

Go to Setup > Object Manager and find the Zenkraft Shipment object.

Under Fields & Relationships click New.

Select Lookup Relationship and click Next.

Choose the object to look up to. This object should be the one you need to create the shipment from. We will be using the Case object for this example. Once selected, click Next.

Enter the field label and name for this lookup field. Click Next until you reach the last setup page, then click Save.

Once saved, the new relationship will appear under the Shipment object.

When you create the Custom Address this lookup relationship will appear in the Shipment Object Lookup Field list.

Create a test Custom Address Source

If you are not ready to create a live Custom Address Source, you can generate a test CAS by going to Zenkraft Settings > Setup tools. Please note, that you will need to create a lookup relationship to the Case object first, as following the steps described above.

Scroll down to Custom Address Source and click Create Case Custom Address Source.

This will generate a test CAS linked to the Case object.

Custom Address Source Name

Enter a name to uniquely identify this record. For example "Return Case shipments".

Shipment Object Lookup Field

This is the object that you will be shipping to. Zenkraft supports both standard and custom objects.

Our most common standard objects include Case, Order, Contact, Lead and Account.

Make sure you have created your lookup from the Shipment object as described above.

If you have several different use cases for one object please make sure to create a separate lookup relationship for each custom address source. Alternatively, you can populate the Origin Custom Address Source Id Field with the Salesforce ID of your related custom address source, or you can set up a formula field with the different IDs. This is to make sure that when your user clicks on the New Shipment icon on the related list, the correct Custom Address Source mapping is used.

Sender Address Fields

You should only fill in this section if you need to specify a different sender address than what is specified on your preference. If this section is blank then the sender fields will be automatically populated with the Shipping Address from your preference.

For return shipments the application wil automatically use the sender address as the Return Shipments To address.

Recipient Address Fields

This section is required (unless you are setting up the Custom Address Source for B2B Cart). The majority of carriers require all these details to be filled in. Below we detail any specifics of each field:

Name Field

Most carriers limit this to 35 characters.

Email Field

Make sure this is a valid email address

Company Name Field

Most carriers limit this to 35 characters.

Phone Field

The phone number usually must be at least 10 characters long. You can also include the country code. For example +44 for the United Kingdom.

Street (TextArea option)

If you have your Street lines all in 1 text area use this field. Most carriers limit each street line to be 35 characters long.

City Field

Most carriers limit this to 35 characters.

Street Line 1 (TextLine option)

If you have your Street lines all separated into individual lines then use these fields. Most carriers limit each street line to be 35 characters long.

State Field

We generally recommend using the two letter state code or the Standard Salesforce State Code Picklist for this field. For non-US and non-CA shipments the state is not generally required

Street Line 2 (TextLine option)

If you have your Street lines all separated into individual lines then use these fields. Most carriers limit each street line to be 35 characters long.

Postal Code Field

Most countries use the Postal / Zip code so please ensure you populate this information correctly. Some carriers validate the city and postal code match and won't allow you to ship unless they are correct.

Country Field

We generally recommend using the two letter country code or the Standard Salesforce Country Code Picklist for this field.

Is Residential

This is a checkbox type field. True or False.

Note: For return shipments the application wil automatically use the Recipient Address as the Return Shipments From address.

Wizard Mode

There are 4 Wizard Modes to choose from:

Default - this is the standard shipping wizard.

Pick and Pack - this mode loads the Pick and Pack interface.

Outbound and Return - this loads the default looking wizard and allows you to specify the return Custom Address Source to use. The wizard has separate tabs for Outbound and Return shipments.

Outbound and Return (Pick and Pack) - this loads the Pick and Pack wizard and allows you to specify the return Custom Address Source to use.

Packages

Use Child Object - use this checkbox if you want to use your child objects to specify the size and amount of the packages that will be included in this shipment. Good example of this are from the Order -> Order Items, Opportunity -> Opportunity Line Items use case.

Packages - This is where you can specify the fields for the Weight and Dimensions of the packages.

Link Shipment Packages to Original Object - Utilize this field if you want to record which items went into which package. This is used in conjunction with the Pick and Pack interface or if you utilize the Boxing Algorithm checkbox below. To set this up please create a Lookup from the Packages Object to your Child Object Item. For example your Order Line item or Opportunity Line Item.

Boxing Algorithm - If you want us to automatically calculate the best packages to use for adding your products into your boxes you can select this checkbox.

Package level references

You can add up to two package level references to each label. Go to the searchbox on the right and type reference and you will see ALL CARRIERS: REFERENCE #1.

Example: on a UPS label the Package ID reference will look like this:

Products / Customs Items

This section is where you can pre-define the items you will be shipping internationally, or if you are using the Pick and Pack interface.

For international shipping, the carriers generally require you to specify the Description, Quantity, Weight, Value, Country of Manufacture and Harmonized code.

Use Child Object - use this checkbox if you want to use your child objects to specify the items that will be included in this shipment. A good example of this is from the Order -> Order Items or Opportunity -> Opportunity Line Items use case

Packages - This is where you can specify the fields for the Weight and Dimensions of the packages

Link Customs Items to Original Object - Utilize this field if you want to link back to your product object. This then allows you to easily create reports of most ordered items. To set this up please create a Lookup from the Customs Items Object to your Child Object Item. For example your Order Line item or Opportunity Line Item.

Preference

We recommend you always specify the Preference you will be using here even if you don't have multiple preferences, so that in the future if you ever add a new preference then the current configuration will not break.

Preference Name Field

Set the Shipping Preference that you will be using most often in case you have multiple preferences. You can even set up a formula field to use a certain preference based on a given criteria. For example, for US orders use the US preference, while for UK shipments use the UK one.

Label Image Type Field

By default the label type will be set on your preference, but you might have a use case where you want to create label in a different format using the same shipping preference. For example your outbound labels will be using the ZPL thermal type, but your return labels will be sent in an email to your clients as a PDF.

Dates

This field is not required, but if you do need to specify a future date you can set it here.

Ship Date Field

The field must be of type Date

Shipment / Package Type

Shipment Type Field

The default value for this field is OUTBOUND for outbound shipments, but if you need to create return shipments then you can specify RETURN.

Package Type Field

This is a required field if you want to automate shipments. The values for this field differ depending on the carrier. All carriers have your_packaging as a value that can be set. To get the list of other packaging types for your specific carrier please follow this link.

Service Type

Service Type Field

This is a required field if you want to automate shipments. The values for this field differ depending on the carrier. To get the list of service types available for your specific carrier please follow this link.

International Service Type Field

This is a required field if you want to automate international shipments. The values for this field differ depending on the carrier. To get the list of service types available for your specific carrier please follow this link.

Reference Field

Reference Field

If you want to pass a reference to the carrier then populate this field. Depending on the carrier the reference will show up on the label. If you want to add more references (dependent on carrier), then you can add these later on in the Specific Carrier Fields section.

Billing Field

You may need to bill the shipment costs to the recipient or even a third party on occasion. This section allows you to set these values.

Billing Account Number Field

Enter the account number that you want to charge this shipment to.

Payment Type Field

This is required if you want to set the values as RECIPIENT or THIRD_PARTY. The default value is SENDER.

Billing Email Field

Some carriers want to have the email populated.

Billing Name Field

Some carriers want to have the name populated.

Billing Phone Field

Some carriers want to have the phone populated.

Billing Company Name Field

Some carriers want to have the company name populated

Billing City Field

Some carriers require the city field to be populated as they use that to authenticate you are using the correct account for third party billing.

Billing Street Field

Some carriers require the street field to be populated as they use that to authenticate you are using the correct account for third party billing

Billing State Field

Some carriers require the state field to be populated as they use that to authenticate you are using the correct account for third party billing

Billing Country Field

For third party billing the carriers usually want to know the country of the associated account. This is true for FedEx and UPS.

Billing Postal Code Field

For third party billing the carriers usually want to know the country of the associated account. This is true for UPS.

Specific Carrier Fields

Most carriers have specific fields that are required to be populated. A good example is for creating return shipments with UPS. You need to specify the return type such as Print and Mail, Pickup Attempt 1 or Print.

Some carriers require quite a few fields to be populated so we have created the Template section for you to choose these grouping to automatically populate the required fields. Example templates are shown here:

For one off specific carrier fields you can click on the Add button and search for the carrier, and it will give you a list of all the available options.

A commonly used specific field is the Package Contents. This field is required by FedEx, UPS, USPS and some other carriers for international shipments. The possible options are:

  • Documents - DOCUMENTS_ONLY
  • Commodities - NON_DOCUMENTS

If you have multiple carriers you can add multiple carrier related fields to one Custom Address Source, and as long as you set the Preference correctly in the preference section you will not hit any issues.

Output for Rate Request

Use this section only when you are specifically creating a Custom Address Source for getting rates.

Set which field on your lookup object should be populated by the response from the carriers using the fields specified in this section:

International Section

You can set the international documents section on the wizard by adding the Salesforce IDs for the required documents.

Update Original Object after Ship Success

You may have the requirement to copy information from the Shipment object back up to your lookup related object. For example the tracking number or shipment costs.

You could write a process builder, if you need specific logic, or you can use this section to specify the field that you would like to copy.

Enhanced Functionality Settings

From v1.96 it is possible to add Customs information to a shipment, even if is created for domestic consignment. Click Add, then select All Carriers: International Details and set a static true value.

Error Handler

If you are automating your shipments via Process Builder Tasks, you might have a situation where the shipment doesn't get created due to any number of reasons, but mainly due to incorrect address information. This section allows you to specify which field on your lookup record should store any error messages. This then allows you to write a report on any shipments which failed so that you can manually edit the address fields, for example, to then allow the shipment to successfully get created.

Branding settings

If you are using Branded Tracking and you have multiple brands this sections allows you to specify the name of the Branded Tracking tab to use.

Automation settings

These fields can be set to help with some of the automation.

Auto Create Shipment

This checkbox is used when you are using the Shipment wizard and you want to automatically try to create the shipment if all fields are set correctly. This is known as One Click Shipping.

Auto Print

Once the shipment has ben created via process builder tasks or via the wizard, if this checkbox is set to true, we will attempt to print the labels out to your printer. Make sure that you have set the printer default for your user so the labels come out of the correct printer!

Export a Custom Address Source

Exporting a custom address source can be especially useful when migrating tested solutions from one sandbox to another, or to a production org.

Go to Custom Address Sources and select All view. Check the box of the CAS you want to export and click on Export Custom Address Source.

On the next screen there is an option to rename the file. Once that is done click on Export.

A JSON file will be downloaded. You can store this file for importing later.

Troubleshooting

If the buttons are not there, you can add them under Edit Object > Search Layouts for Salesforce Classic > List View.

Import a Custom Address Source

Once you have the JSON file available as explained above go to Custom Address Sources and All view again, then click on Import Custom Address Source.

On the next screen click on Upload Template. Select the file you want to upload.

Once the file is uploaded you again have the option to rename the CAS. Then you can click Import.

You will receive a message when the import is successfully completed.

Now if you go back to All view you should see the recently imported CAS in the list.

Back to Top