BeyondERP.Newsletter
Menu

Setup step on the Delete inactivated addresses page · Organization administration

Delete historical addresses in bulk

Remove deactivated postal addresses in one run.

Used by
Collections manager, Human resource manager, Information technology manager and 1 more role
Business process
Administer system features
Menu item
action:DirPartyPostalAddressDeactivateDeleteV2Job
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Historical addresses are deleted”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that deletes many historical (deactivated) postal addresses in one run.
What you do hereUse this periodic task to clean up old addresses in bulk instead of deleting them one party at a time.
ExampleFor example, after a cleanup of customer and vendor addresses, BEAT runs the job once to delete all historical postal addresses in bulk, instead of deleting them party by party from the History tab.
Delete inactivated addresses page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itWhen historical (deactivated) postal addresses have built up and are no longer needed.
How oftenOn demand, for example after a cleanup of customer, vendor or party addresses.
Batch settingsIt runs as a batch job; run it outside working hours when many parties have historical addresses.
What the output showsHistorical postal addresses deleted in bulk, with a notification of success or failure. Addresses that are still linked to another record aren't deleted and give an error message instead.

Source: Microsoft Learn

Setup steps on this page

Delete historical addresses in bulk

Remove deactivated postal addresses in one run.

Steps from Microsoft

  1. Go to Organization administration > Periodic > Delete inactivated addresses.
  2. Make sure the Advanced address maintenance feature is turned on in Feature management; it's available from version 10.0.32.
  3. Decide whether to delete historical addresses in bulk here, or for a single party from Global address book under Addresses > More options > Advanced.
  4. Start the job, then read the notification that tells you whether it succeeded or failed.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
An address is still linked to another record and can't be deletedLeave it; the job deletes the other historical addresses and reports the ones it couldn't delete in an error message. Microsoft Learn

Test checklist

  1. The History tab of a sample party shows no deactivated addresses.
  2. Active addresses are unchanged.
  3. Addresses that are linked to other records are still there and are named in the error message.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete historical addresses in bulkRun it once after an address cleanup, outside working hours, after checking that the historical addresses aren't needed for documents or auditDeleted addresses can't be restored, and addresses still linked to other records are skipped with an error message.Delete historical addresses in bulk or party by party?Running it before the Advanced address maintenance feature is on, or without checking whether audit needs the old addresses.Test: Historical addresses are deleted

Feature management and licence

Feature to turn onAdvanced address maintenance (Must be on)
Licence or add-inOn this system the page opens for Information technology manager, Human resource manager, Collections manager and Logistics manager. Turn on Advanced address maintenance (available from version 10.0.32) before you use the job.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyWorks on the postal addresses of parties in the global address book. Microsoft Learn
Can it be undoneNot reversible: Deleted addresses can't be restored.
If you change it laterAn address that is still linked to another record can't be deleted; you get an error message instead. Microsoft Learn
Technical architect

6Technical

Menu itemaction:DirPartyPostalAddressDeactivateDeleteV2Job Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

4 security roles. Select a role to see its duties and privileges.

  • RoleCollections managerCollectionLetterCollectionsManager
    • DutyMaintain global address book masterDirAddressBookMasterMaintain
      • PrivilegeMaintain party recordsDirPartyTableMaintain
  • RoleHuman resource managerHcmHumanResourceManager
    • DutyMaintain global address book masterDirAddressBookMasterMaintain
      • PrivilegeMaintain party recordsDirPartyTableMaintain
  • RoleInformation technology managerSysServerITManager
    • DutyMaintain global address book masterDirAddressBookMasterMaintain
      • PrivilegeMaintain party recordsDirPartyTableMaintain
  • RoleLogistics managerTMSLogisticsManager
    • DutyMaintain global address book masterDirAddressBookMasterMaintain
      • PrivilegeMaintain party recordsDirPartyTableMaintain
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itInformation technology manager SysServerITManagerHuman resource manager HcmHumanResourceManagerCollections manager CollectionLetterCollectionsManagerLogistics manager TMSLogisticsManagerGive people one of these roles. On this system, 4 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:DirPartyPostalAddressDeactivateDeleteV2Job
Data migrationLoad order: Delete inactivated addresses has no data entity in Data management, so it can't be loaded from a file or a configuration template. The job deletes data and stores no setup, so there is nothing to move.Checked in Dynamics 365
Everyone

8Sources

To cite this step: OA-JOB-790, Delete historical addresses in bulk. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/OA-JOB-790