Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

remove shipper tracking number

Posted on by Microsoft Employee

I am looking for a way to remove a tracking number from AX 2012 R3 for UPS and FedEx. I was able to do this with FedEx ShipManager when we canceled a labeled, but not UPS.

However, I recently migrated to a software based labeling system and it does not have a defined method for canceled labels, so in AX I still see the original tracking number. With my software labeling system, I can verify if a label was previously generated and if so, I can reprint if it is less than 5 days old, otherwise we will reprint with new tracking number. I was thinking on the reprint with new tracking, I would trigger this SQL statement, as I have the Packing slip, Sales order, and Tracking numbers.

Delete FROM [TESTAX].[dbo].[SHIPCARRIERSTAGING]
where packingslipID ='017305' and salesID = '017350' and TRACKINGNUMBER ='xxxxxxxxxxxx'

Are there any other tables that I would also need to delete from?

Or, is there a field that I can update that would hide the previous tacking numbers from packing slip journal --> Order Tacking --> Tracking Numbers

The issue having multiple tracking numbers, is that my EDI ASN task will pull all tracking numbers and send them to my trading partners. Some only accept 1, so the chance that an invalid number being passed is valid.

*This post is locked for comments

  • Guy Terry Profile Picture
    Guy Terry 28,621 Super User 2024 Season 2 on at
    RE: remove shipper tracking number

    The one and only time I investigated Packing slip tracking numbers, I decided they were stored in the table ShipCarrierTracking, where you have reference to the Sales order number and the Packing Slip Id.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: remove shipper tracking number

    Ran SQL Server Profiler while I deleted a transaction from FedEx Ship Manager. Here is what Ship Manager ran in SQL:

    Delete *  From "SHIPCARRIERSTAGING" Where "TRACKINGNUMBER" = 'TrackingID'

    Delete   From "SHIPCARRIERSTAGING" Where "TRACKINGNUMBER" = 'TrackingID'

    I will be using my original code from above to to delete the original tracking code, if the reprint is outside the 5 day period.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans