You are here: Administrators > Distribution & Vendors > Distribution Rules > FedEx Distribution Rule

FedEx Distribution

Access Distribution Rules

Click on the Order Management then the Distribution Rules tab.

Create a Distribution Rule

  1. Mouse over the 'Create Distribution Rule" and choose FedEx as shown below
  2. A window will open prompting you to fill out information necessary for FedEx transmission.
  Name Description
1 Rule Name The Name of this distribution rule.
2 Rule Description

A longer description of this rule. A best practice is to enter a non technical description so that users who are not as familiar with JavaScript can interpret the rule.

3 Selection

The search criteria that must be met by an Order Item before this rule can be applied.

Example

You could enter a selection to where any order item whose price is over $5,000 must go to a special vendor.

Expressions

The pencil icon represents a field that accepts a JavaScript expression. Read "JavaScript expression" for more information

4 Transmission Limit The number of times the system should try transmitting this item before it gives up. Leave this field empty if you want ContentWelder to keep trying. This is the default setting
5 Customer Profile Name

An optional parameter that can be passed to the FedEx Office Web service during transmission. A customer Profile name can be obtained from FedEx office. See your FedEx Account representative for more information.

6 Customer Account Number

An optional parameter that can be passed to the FedEx Office Web service during transmission. A customer account numbers can be obtained from FedEx office. See your FedEx Account representative for more information

7 Shipping Account Number

An optional parameter that can be passed to the FedEx Office Web service during transmission. A Shipping account numbers can be obtained from FedEx office. See your FedEx Account representative for more information.

8 Purchase Order Number

An optional value that can be added to orders submitted to FedEx that are good for invoice reconciliation.

9 Customer Reference

An optional value that can be added to orders submitted to FedEx that are good for invoice reconciliation.

10 Preferred FedEx Office Center ID

An optional value that can be added to orders submitted to FedEx. If you have a FedEx office Center ID, by specifying it here, you can ensure that all products that meet the specified criteria are produced at that facility.

Example:

Your company wants to ensure that all AdHoc(upload to print) documents that contain confidential information are produced in a closed door facility, for compliance purposes.

By coming to terms with FedEx where your company wants these documents produced, you would use this field and to enter the specific Office ID, thereby ensuring all confidential AdHoc documents go to that facility.

11 Catalog Name An expression entered here will override any catalog names setup in the preferred vendor portion of a catalog item setup.
12 Create Click to create the rule.
13 Cancel Click to cancel.

Note: Distribution rules MUST be "approved" for them to take effect. This means that if you are making changes to distribution rule that is used, make sure to 'approve' it once you have finished with your changes.

Sample Expressions

Below are a few sample expressions to get you started. we start with a simple rule whose criteria is defined in one of the 3 out of the box distribution rules. then we get progressively more complex.

Example

Let's say we want a more detailed description rule that catches all personalized catalog items that contain as part of their keywords a value of "risk"

We would create a new distribution rule with the following criteria.

OrderItem.Vendor.Name == 'FXO' && OrderItem.CatalogItemType == 'Personalized' && OrderItem.CatalogItem.Keywords.toLowerCase().indexOf('risk')

Notice we used the JavaScript method "toLowerCase()" to ensure we don't capture the word even if some of it's characters are not lowercase.