BeyondERP.Newsletter
Menu

Setup step on the Clean up expense mobile notifications page · Expense management

Clean up old mobile notifications

Keep the mobile app's notification list useful.

Business process
Manage time and attendance
Menu item
action:TrvCleanUpExpMobileNotification
Setup steps
1 on this page
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 expense mobile app notifications older than a number of retention days.
What you do hereUse this job to keep the notification list in the expense mobile app short; the expenses and reports the notifications point to are not changed.
ExampleFor example, with 30 retention days the monthly batch removes notifications such as "expense created from card import" and "expense report approved" that are more than a month old.
Clean up expense mobile notifications 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 time and attendance
Menu pathExpense management › Periodic tasks › Clean up expense mobile notifications
Set up firstCredit card transactions Microsoft Learn
Used next byBatch jobs Microsoft Learn
Related pagesExpense management workspace Microsoft Learn
In this process Return a stuck document to draft · Clock workers in and out
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 old expense mobile app notifications build up, for example about imported card expenses or approvals.
How oftenOn a recurring schedule, for example weekly or monthly.
Batch settingsRun it as a recurring batch job outside working hours.
What the output showsExpense mobile notifications older than the retention days are removed. Expenses and expense reports themselves are not affected.

Source: Microsoft Learn

Setup steps on this page

Clean up old mobile notifications

Keep the mobile app's notification list useful.

Steps from Microsoft

  1. Go to Expense management > Periodic tasks > Clean up expense mobile notifications.
  2. Enter the Number of retention days; notifications older than this are removed.
  3. Choose a value long enough that employees can still act on recent notifications, such as an expense report ready for approval.
  4. Run it, ideally as a recurring batch, and then open the notifications in the expense mobile app to make sure recent ones are still there.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Number of retention daysNotifications older than this are deleted.Checked in Dynamics 36530

Common errors and fixes

MessageWhat to do
Users still see old notificationsThe job hasn't run, or the retention days are longer than the notifications' age. Check the batch job and the value. Microsoft Learn

Test checklist

  1. Note the oldest notification of a test user in the mobile app.
  2. Run the job with a retention shorter than its age.
  3. Check it is gone from the app.
  4. Check the expense it pointed to is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up old mobile notificationsRun it monthly in batch with a retention of about a month.Notifications point to records that still exist, so removing old ones loses no data but keeps the list short.How long are mobile notifications kept?Setting the retention so short that approvers lose notifications for reports they still have to approve.Test: Old notifications are removed

Feature management and licence

Licence or add-inIn this system Employee and Contractor enter their own expenses, and Expense administrator sets up the module and processes documents. The expense mobile app needs the Employee role, a company on the user account and a link to an employee with active employment. In this system the Employee and Contractor roles can also run it; the expense administrator schedules it. No Feature management feature is needed.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the job removes notifications of the legal entity it runs in. Checked in Dynamics 365
Can it be undoneIrreversible: Deleted notifications can't be restored; the expenses and reports are unchanged.
If you change it laterThe mobile app raises notifications when an expense is created from a card import, when a report or expense is ready for approval, and when it is approved. Microsoft Learn
Technical architect

6Technical

Menu itemaction:TrvCleanUpExpMobileNotification Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Roles to set it up and use itTo use itExpense administrator ExpenseAdministratorContractor HcmContractorEmployee HCMEmployeeGive people one of these roles. On this system, 3 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:TrvCleanUpExpMobileNotification
Data migrationLoad order: The job has no data entity in Data management, so it can't be loaded from a file or a configuration template. It processes data that is already in the system and keeps only its batch settings; set up and schedule it again in each environment.Microsoft Learn
Everyone

8Sources

To cite this step: EM-JOB-090, Clean up old mobile notifications. Beyond ERP Atlas Hub, 2026-11-11. https://www.beyonderp.cloud/atlas/step/EM-JOB-090