BeyondERP.Newsletter
Menu

Setup step on the Purge loyalty lines for other activities page · Retail and Commerce

Purge old loyalty lines for other activities

Delete loyalty lines for other activities that have a chosen status and age.

See how to set it up Back to Retail and Commerce

Used by
Retail operations manager, Retail service
Business process
Define loyalty programs in Dynamics 365 Commerce
Menu item
PurgeLoyaltyLinesForOtherActivitiesBatch
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, “Old lines are purged”, 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 loyalty lines for other activities that have a chosen status and age.
What you do hereRun this job to clear old loyalty lines that are no longer needed.
ExampleFor example, BEAT imports about 5,000 survey and workshop activities a month into Loyalty lines for other activities. Each quarter it purges posted lines older than 12 months.
Purge loyalty lines for other activities 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 posted loyalty lines are past your retention period
How oftenAs a recurring batch job, for example quarterly
What the output showsThe selected lines are deleted from Loyalty lines for other activities.

Source: Microsoft Learn

Setup steps on this page

Purge old loyalty lines for other activities

Delete loyalty lines for other activities that have a chosen status and age.

How to use it

  1. Go to Retail and Commerce > Retail and Commerce IT > Clean up > Purge loyalty lines for other activities.
  2. Under Parameters, choose the Status of the lines to delete and enter Last entered through or Aged days.
  3. Expand Run in the background to set Batch processing, the Task description, Batch group, Private, Critical Job and Monitoring category.
  4. Select Recurrence to repeat the job, or Alerts to be told when it ends.
  5. Select OK to run, or Cancel to close without running.

Source: Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
Customers miss points for an activityIts line was purged before it was posted. Post or review lines first, and purge only posted lines. Microsoft Learn
Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Purge old loyalty lines for other activitiesPurge posted lines past your retention period; review unposted lines before purging them.Posted lines have already awarded their points; unposted lines may still be waiting for review.Which lines may be purged?Purging unposted lines that should have earned points.Test: Old lines are purged

Feature management and licence

Licence or add-inIn this system 2 roles can open this page, among them Retail service and Retail operations manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyShared: the loyalty lines table has no company column, like the loyalty programs it serves. Microsoft data model
Can it be undoneIrreversible: Purged lines can't be restored.
If you change it laterPoints already awarded by posted lines stay on the cards; only the lines are removed from the journal. Microsoft Learn
Technical architect

6Technical

Menu itemPurgeLoyaltyLinesForOtherActivitiesBatch Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

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

  • RoleRetail operations managerRetailOperationsManager
    • DutyMaintain retail labelsRetailLabelsMaintain
      • PrivilegeMaintain retail loyalty cardsRetailLoyaltyCardsMaintain
  • RoleRetail serviceRetailService
    • DutyMaintain retail labelsRetailLabelsMaintain
      • PrivilegeMaintain retail loyalty cardsRetailLoyaltyCardsMaintain
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 itRetail service RetailServiceRetail operations manager RetailOperationsManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=PurgeLoyaltyLinesForOtherActivitiesBatch
Data migrationLoad order: Purge loyalty lines for other activities has no data entity in Data management, so it can't be loaded from a file or a configuration template. It works on data that is already in the system, so there is nothing to load.Checked in Dynamics 365
Everyone

8Sources

To cite this step: RC-ITJ-170, Purge old loyalty lines for other activities. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/RC-ITJ-170