Service managementPerform periodic tasksService orders
SMAServicePeriodic_Delete
Used by
Service dispatcher
Business process
Create service request by using Service management in Dynamics 365 Supply Chain Management
Menu item
SMAServicePeriodic_Delete
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, “Delete one agreement's orders”, 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 periodic task dialog that deletes the service orders that match the selection criteria you specify.
What you do here
Use this page to remove a series of service orders, for example before regenerating them from an agreement with a new frequency; only orders in a stage that allows deletion are removed, and with no criteria all service orders are deleted.
Example
For example, when a customer decides mid-year that service visits are too infrequent, you delete the existing service orders and create a new, more frequent series for the rest of the agreement.
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 a series of service orders is no longer valid, for example before you create a new, more frequent series of visits for the rest of a service agreement.
How often
On demand, only when a series of service orders has to be removed.
What the output shows
The service orders that matched your criteria and were in a deletable stage are removed; the Action center message lists them. Orders that remain usually have a stage that doesn't allow deletion.
Go to Service management > Perform periodic tasks > Service orders > Delete service orders.
Select Select and enter the criteria for the service orders to remove, for example the service agreement whose series you will recreate with a new frequency, and close the Inquiry dialog with OK. Without criteria, all service orders are deleted.
Set Show Infolog to Yes to get an Action center message listing every service order that was deleted.
Run the job, then read the Action center message; only orders in a stage that allows deletion are removed.
Running the task without any selection criteria deletes every service order (after a confirmation when you leave the page), so the criteria should always be checked first. Microsoft Learn
Technical architect
6Technical
Menu item
SMAServicePeriodic_DeleteChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
1 security role. Select a role to see its duties and privileges.
RoleService dispatcherSMADispatcher
DutyPerform service order periodic jobsSMAServiceOrderPeriodicMaintain
PrivilegeDelete service orders periodicallySMAServicePeriodic_Maintain
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 it
To use itService dispatcher SMADispatcherGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Delete service orders has no data entity in Data management. It is a periodic task that works on existing records and stores no data of its own, so there is nothing to migrate.Checked in Dynamics 365