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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Remove/Delete Address for Customer

(0) ShareShare
ReportReport
Posted on by 2,032

Hi,

I am using D365 FO(10.0.12)

I wanted to understand what happens when 'Remove' is clicked in Address from the Customer form ?

pastedimage1601040975322v1.png

Does it trigger a deletion from the addres related tables?

I see the records are present in LogisticsPostalAddress, LogisticsLocation tables even after the address is removed for the customer. 

Is there a way to trigger a permanent delete of the customer addresss? 

I have the same question (0)
  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    When you remove the address, those addresses are then moved to history to maintain data integrity. For example, invoices generated on the past addresses. Why do you want to delete it permanently? OOB AFAIK there is no functionality where it will delete permanently. 

    pastedimage1601042093596v1.png

  • Suggested answer
    Ramit Paul Profile Picture
    22,797 Most Valuable Professional on at

    Hi,

    NO, Dynamics doesn't ask you if yuu are sure or not, instead it will delete directly.

    However, you can only delete Primary address =NO

    Primary address can not be deleted.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Anitha,

    It deactivates the "Location" record. You can look at Classes\LogisticsEntityLocationFormHandler\updateLocationStatus() method  to look at the logic.

    You can try this for deleting addresses - Organization administration >Periodic >Delete inactivated addresses.

  • Suggested answer
    Junaid Idrees Profile Picture
    on at

    Hi

    Check this job to delete address permanently but the code is for AX 2012, at least you can get the hint:

    abdulghani121.blogspot.com/.../code-for-deleting-address-information.html

    Please note this job will not delete address if it is primary.

  • Sirch Etram Profile Picture
    5 on at

    Reviving this thread, Is there any way to see all inactive delivery/customer address? not per customer.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Sirch, I don't know if there is OOTB standard form or report that can show all inactive delivery address. In case, you don't find a way, you can create SQL query (if required for few times) and export to excel or create custom form if required all the time.

    You can refer to postalAddressDelete method in DirPartyPostalAddressDeletionHelper class for reference to tables.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans