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, “Clean up trade agreement journals and keep posted prices”, 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 is
A cleanup job that removes trade agreement journals in one run. Its dialog has no selection fields, so you can't limit which journals it processes.
What you do here
Use it to clean up trade agreement journals that are no longer needed after price and discount updates. Because the run can't be filtered, review the journals first and test it in a test environment.
Example
For example, BEAT posts a new purchase price list for vendor BEAT-000123 every quarter through trade agreement journals such as PDJ-000781. After the 2026 cycle the purchasing manager reviews the 26 journals, runs the cleanup in a copy of production, compares the journal list, and only then runs it in production.
The page in Dynamics 365. page title tab to open what to set or check
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 it
When trade agreement journals have built up after price update cycles and the business confirms they are no longer required.
How often
On demand, for example after each yearly price update cycle.
Batch settings
Run it in the background, because it works through the journals without a filter.
What the output shows
Trade agreement journals are cleaned up. Compare the journal list before and after to see what was removed.
A trade agreement journal that wasn't posted yet is gone after the run.
The job has no selection fields. Post or save such journals before the run and test it in a test environment first; removed journals can't be restored. Microsoft Learn
Test checklist
In a test environment, count the trade agreement journals, for example 26, and note how many are posted.
Run the cleanup.
Open Trade agreement journals again and count them.
Create a purchase order for vendor BEAT-000123 and check whether the posted price of 12.50 still comes in.
Run it only after every journal that still matters is posted, and after a test run in a test environment where you compared the journal list before and after.The job has no selection fields, so you can't keep a single journal out of the run, and removed journals can't be restored.
Per company: it works on the trade agreement journals of the legal entity you run it in, with no filter. Checked in Dynamics 365
Can it be undone
Irreversible: Removed trade agreement journals can't be restored.
If you change it later
Removes trade agreement journals. As with every cleanup routine, run it only after the business confirms the data is no longer required, and test it in a test environment first. Microsoft Learn
Technical architect
6Technical
Menu item
action:PriceDiscAdmTransCleanUpChecked in Dynamics 365
Form
SysOperationTemplateFormChecked in Dynamics 365
Who can open it
1 security role.
No privilege grants this menu item, so no duty or privilege can give access to it. Only the System administrator role, which is not limited by security, can open it.
RoleSystem administrator-SYSADMIN-
Worked out from Microsoft's standard security definitions (10.0.2790.108), which hold every privilege of the working Dynamics 365 system (10.0.49) but one custom privilege, checked on 2026-11-23
Load order: Clean up trade agreement journals has no data entity in Data management. It removes journals and holds no data of its own. Migrate trade agreements through the trade agreement journal entities and post them; run this cleanup in the new system afterwards if the import journals aren't needed.Checked in Dynamics 365