In suiteql, is there a way to get the return track...
# ask-stanley-ai
r
In suiteql, is there a way to get the return tracking number
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that the tracking number is not directly stored in the NetSuite database. However, you can derive the tracking URL by using the carrier type and appending the actual tracking number at the end. Here is a sample function that was shared in the conversation:
Copy code
javascript
function trackingURL(carrier) {
    var url;
    switch(carrier) {
        case "UPS":
            url = "<http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber1=>";
            break;
        case "FEDEX":
            url = "<http://fedex.com/Tracking?ascend_header=1&clienttype=dotcom&cntry_code=us&language=english&tracknumbers=>";
            break;
        case "DHL":
            url = "<https://webtrack.dhlglobalmail.com/?trackingnumber=>";
            break;
        default:
            url = "<http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?strOrigTrackNum=>";
    }
    return url;
}
You can use this function to generate the tracking URL based on the carrier type. You might need to modify this function based on your own carriers. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814392209
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811515272
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809969842
Please provide your feedback on this answer.