BeyondERP.Newsletter
Menu

Setup step on the Clean up trade agreement journals page · Procurement and sourcing

Clean up trade agreement journals

Remove trade agreement journals that are no longer needed after price updates.

Used by
System administrator
Business process
Manage supplier pricing
Menu item
action:PriceDiscAdmTransCleanUp
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, “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 isA 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 hereUse 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.
ExampleFor 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.
Clean up trade agreement journals 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

Business processManage supplier relationships › Manage supplier pricing
Menu pathProcurement and sourcing › Periodic tasks › Clean up › Clean up trade agreement journals
Set up firstTrade agreement journals Microsoft Learn
Used next byAll purchase orders Microsoft Learn
Related pagesActivate price/discount Microsoft Learn Sales trade agreement journals Microsoft Learn
In this processSet up Vendor price/discount groups
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 trade agreement journals have built up after price update cycles and the business confirms they are no longer required.
How oftenOn demand, for example after each yearly price update cycle.
Batch settingsRun it in the background, because it works through the journals without a filter.
What the output showsTrade agreement journals are cleaned up. Compare the journal list before and after to see what was removed.

Source: Microsoft Learn

Setup steps on this page

Clean up trade agreement journals

Remove trade agreement journals that are no longer needed after price updates.

Steps from Microsoft

  1. Go to Procurement and sourcing > Periodic tasks > Clean up > Clean up trade agreement journals.
  2. Before the run, open Procurement and sourcing > Prices and discounts > Trade agreement journals and note which journals exist, posted and not posted.
  3. Post or save elsewhere any journal that still holds prices you plan to post, because the job can't exclude a journal.
  4. Run it in a test environment with a copy of production and compare the journal list with your notes.
  5. Run it in production and check that purchase prices from posted trade agreements still apply on a new purchase order.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
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

  1. In a test environment, count the trade agreement journals, for example 26, and note how many are posted.
  2. Run the cleanup.
  3. Open Trade agreement journals again and count them.
  4. Create a purchase order for vendor BEAT-000123 and check whether the posted price of 12.50 still comes in.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up trade agreement journalsRun 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.When is the trade agreement journal cleanup run?Running it while a price update is still in a journal that hasn't been posted.Test: Clean up trade agreement journals and keep posted prices

Feature management and licence

Licence or add-inGrant this job only to the people who maintain purchase trade agreements, because it can't be filtered.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer 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 undoneIrreversible: Removed trade agreement journals can't be restored.
If you change it laterRemoves 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 itemaction:PriceDiscAdmTransCleanUp Checked in Dynamics 365
FormSysOperationTemplateForm Checked 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
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:PriceDiscAdmTransCleanUp
Data migrationLoad 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
Everyone

8Sources

To cite this step: PS-JOB-070, Clean up trade agreement journals. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PS-JOB-070