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? 

  • Suggested answer
    Mohit Rampal Profile Picture
    12,556 Moderator on at
    RE: Remove/Delete Address for Customer

    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.

  • Sirch Etram Profile Picture
    5 on at
    RE: Remove/Delete Address for Customer - D365 FO

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

  • Suggested answer
    Junaid Idrees Profile Picture
    on at
    RE: Remove/Delete Address for Customer - D365 FO

    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.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Remove/Delete Address for Customer - D365 FO

    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
    Ramit Paul Profile Picture
    22,375 Most Valuable Professional on at
    RE: Remove/Delete Address for Customer - D365 FO

    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
    vinitgoyal2005 Profile Picture
    6,330 on at
    RE: Remove/Delete Address for Customer - D365 FO

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans