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 periodic job that deletes expense mobile app notifications older than a number of retention days.
What you do here
Use this job to keep the notification list in the expense mobile app short; the expenses and reports the notifications point to are not changed.
Example
For 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.
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 old expense mobile app notifications build up, for example about imported card expenses or approvals.
How often
On a recurring schedule, for example weekly or monthly.
Batch settings
Run it as a recurring batch job outside working hours.
What the output shows
Expense mobile notifications older than the retention days are removed. Expenses and expense reports themselves are not affected.
Run 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.
In 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.
Per company: the job removes notifications of the legal entity it runs in. Checked in Dynamics 365
Can it be undone
Irreversible: Deleted notifications can't be restored; the expenses and reports are unchanged.
If you change it later
The 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 item
action:TrvCleanUpExpMobileNotificationChecked in Dynamics 365
Form
SysOperationTemplateFormChecked in Dynamics 365
Roles to set it up and use it
To use itExpense administrator ExpenseAdministratorContractor HcmContractorEmployee HCMEmployeeGive people one of these roles. On this system, 3 roles can run this page.Checked in Dynamics 365
Load 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