Steve Parks – Adept Developer

Business Technology Consultant

  • Calendar

    March 2009
    M T W T F S S
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
  • Pages

  • Archives

FedEx Track Shipment CFC

Posted by adeptdeveloper on March 21, 2009

If you need to track FedEx shipments with ColdFusion and don’t want to bother with 100s of lines of Web Service, XML and SOAP code, then check out FedEx.Track from AdeptDeveloper. This CFC is easy to use and takes a matter of minutes to be up and running. About 3-5 lines of code and you’ll be recieving detailed information on any tracking number as a ColdFusion Struct Object.


<!--- Instantiate the Object --->
<CFSET objFedExTracker= CreateObject('Component', 'Fedex.Track')>

<!--- Set Credentials - All 4 of those values will be given to you by Fedex --->
<CFSET objFedExTracker.SetCredentials(strFedExAccountNumberGoesHere, strFedExMeterNumberGoesHere, strFedExKeyGoesHere, strFedExPasswordGoesHere)>

<!--- Set your Tracking Number --->
<CFSET objFedExTracker.SetPackageIdentifier('TRACKING_NUMBER_OR_DOORTAG', strTrackingNumberGoesHere)>

<!--- Tell FedEx we want detailed information about each scan --->
<CFSET objFedExTracker.SetIncludeDetailedScans(1)>

<!--- Get results in the form of an easy to use ColdFusion Struct --->
<CFSET stTrackPackage = objFedExTracker.TrackPackage()>

If you need to track FedEx packages and would like to purchase our FedEx.Track CFC for $25 USD, please contact me by phone or e-mail. You can find more contact information at adeptdeveloper.com/contact/.

Leave a comment