FYI - FedEx changed their tracking URLs!!! QUICK F...
# general
e
FYI - FedEx changed their tracking URLs!!! QUICK FIX IN REPLIES If you are trying to get to fedex tracking with a url that looks like this: http://www.fedex.com/Tracking?action=track&tracknumbers=[NUMBERHERE] THIS NO LONGER WORKS. And you see a "System Currently Unavailable" Page. New URL is: https://www.fedex.com/fedextrack/?trknbr=[NUMBERHERE] How FedEx made this change and didnt tell anyone, or set up a smart redirect is beyond me....
🙏 1
ipso facto, all the shipping links for FedEx inside of NetSuite dont work
To correct this (until NetSuite does) you can create a Custom Transaction Body field with a type of Inline HTML. and set the default value to the code below. Make sure the Formula box is NOT CHECKED!!! Then apply it to any records that have tracking links This is a simple script that finds any fedex links and updates the URL with the new URL format
Copy code
<script>

function updateFedExLinks() {
    document.querySelectorAll("a[href*='<http://fedex.com|fedex.com>']").forEach(trackingLink => {
        let currentURL = trackingLink.href;
        let newURL = currentURL.split('<http://www.fedex.com/Tracking?action=track&tracknumbers=').join('https://www.fedex.com/fedextrack/?tracknumbers=>')
        trackingLink.href = newURL;
    })
}
updateFedExLinks()
</script>