1. Home
  2. Docs
  3. fedex
  4. custom-address-source
Help Wizard Live Chat

Custom Address Source

The Custom Address Source functionality allows default values to be populated onto the shipping wizard from any Standard or Custom object on your Salesforce organisation.

You are also able to go as far as to auto create shipments, and auto print the labels from one click once you have this set up.

The images below describe an example on how you can use this technique to ship to the Case object, but you can choose any object you like.

There are two steps:

  1. Add Lookup Field to Shipment Object
  2. Create the Custom Address Source Record

1. Add Lookup Field to Shipment Object

To allow your standard/custom object to be used as a Custom Address Source in Shipmate, you must create a Lookup Relationship on the FedEx Shipment object to the standard/custom object you are looking to integrate. This allows your standard/custom object to be associated to the FedEx Shipment records and to have a FedEx Shipments related list on your standard/custom object. The following steps detail this process.

  1. Go to Setup | Create | Objects
  2. Under the Label column, click FedEx Shipment.
  3. Under the Custom Fields & Relationships section, click New.
  4. Select Lookup Relationship as the Data Type, and click Next. Shown in Figure 1.
  5. For the Related To value, select the object you want to use as a custom address source, and click Next. Shown in Figure 2.
  6. Enter in a value for Field Name, and click Next.
  7. Continue to click Next until you reach Step 6 of the New Relationship wizard.
  8. Click Save to complete the New Relationship wizard.

Figure 1: Adding Lookup from the FedEx Shipment Object.



Figure 2: Select the standard/custom object you want to ship to. In this example, we’ll select Case object.


2. Create the Custom Address Source Record

To connect the standard/custom object as an address source, a Custom Address Source record must be created. The following steps detail this process.

  1. Go to the FedEx Custom Address Sources tab.
  2. Click on New Custom Address Source. Shown in Figure 3.
  3. Enter in a value for Custom Address Source Name. Shown in Figure 4.
  4. For Object, select the object that you want to use as an address source. Shown in Figure 4.
  5. For Shipment Object Lookup Field, select the Lookup field that was added to the FedEx Shipment object in part 1. Shown in Figure 4.
  6. For the values under the Recipient Address Fields section you can either select a custom field on your object, or use the field selector to navigate to the field needed as you can see in Figure 5.
  7. Populate the Recipient Address Fields, as a minimum.
  8. Once all fields are assigned under Recipient Address Fields, click Save.
  9. Test the Custom Address Source by going to your standard/custom object and click on the New FedEx Shipment button. Shown in Figure 6.
  10. You should then see all the prepopulated fields in the wizard as shown in Figure 7.

Figure 3: After you create the Lookup relationship on FedEx Shipment, create a new Custom Address Source.



Figure 4: In our example, Custom Address Source Name is Case, Object is Case and FedEx Shipment Object Lookup Field is Case__c. Then map the related Case fields to the FedEx Shipment recipient fields as shown.