web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

undo sent to a specific location

(1) ShareShare
ReportReport
Posted on by 131
Hello Experts, thank you for taking the time to read my question.

I currently have a client who is looking for every time they click on the /Undo Shipment/ button to return it to a specific location in the warehouse.

 

My question is what would be the best option to add this functionality to the code?
I was thinking of doing something similar to the warehouse reclassification journal but I'm really not sure how to do it.
Or some event that I can subscribe to within the process by pressing the button but I don't know which tables to touch so that the movement is correct.

Thanks for any ideas or points of view.
greetings
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    99,322 Super User 2026 Season 1 on at
    Hi, just an idea, hope this helps.
    I think you need to consider not moving the inventory to a specific location at the same time as Undo, but doing it after Undo.
    For example, after Undo, you can find this line in Item Ledger Entries.
    Then based on its information, insert a line in the code into the warehouse reclassification journal or item reclassification journal. Then just post it from the code.
     
    Hope this helps.
    Thanks.
    ZHU
     
  • Yael Suarez Profile Picture
    131 on at
    First of all, thank you very much for reading my question.

    Currently that is the way things are done manually. The shipment is undone and then it goes to a warehouse reclassification journal to move the product by the corresponding quantity and lot. I share example images of our process.

    1-. We cancel the shipment and it creates a negative line which is displayed as you told me in the Item Ledger Entry







    I programmed a small query which tells me the warehouse and the location where my products are located.
    I consult it and filter by the "lot" that was in the canceled shipment:
     


    and to return those 12 units to the bin code "Generic" I triggered the warehouse reclassification journal moving from "output" to "generic" as follows:



    and enter the lot number as follows:


    *** Note***
    The same lot number and expiration date
     
    the next step is post the journal

    I consult the query and the 12 pieces are returned correctly to "Generic"



    Following your idea a bit, I found an event at the end of the code unit that undoes the sending, which is the following:




    I'm going to try to create the warehouse reclassification line within that event but my question comes here and I'm hoping you can give me a small example.

    How do I add the lot to the line that is created in variable record Warehouse Journal Line (7311)
    to execute by code the process that exists in the register button within the warehouse reclassification journal

    to automate this process so that they are always in the "GENERICA" location after undoing a shipment



     
    Thank you again for your time and ideas.

    all the best
  • Suggested answer
    Jun Wang Profile Picture
    8,210 Moderator on at
    this customization might have challenges such as how to populate item tracking number per item tracking code. Each item tracking code is different and might post challenges to this. Also, if user ship item from one location and return those to another location which requires different warehouse processes, it might also requires more logic to make it work, 
     
    my suggestion is to keep the manual way.
     
    Jun Wang

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,947 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,120 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 628 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans