BeyondERP.Newsletter
Menu

Setup step on the Delete service orders page · Service management

Delete a series of service orders

Remove service orders before you regenerate them.

See how to set it up Back to Service management

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 isA periodic task dialog that deletes the service orders that match the selection criteria you specify.
What you do hereUse 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.
ExampleFor 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.
Delete service orders 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 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 oftenOn demand, only when a series of service orders has to be removed.
What the output showsThe 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.

Source: Microsoft Learn

Setup steps on this page

Delete a series of service orders

Remove service orders before you regenerate them.

Steps from Microsoft

  1. Go to Service management > Perform periodic tasks > Service orders > Delete service orders.
  2. 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.
  3. Set Show Infolog to Yes to get an Action center message listing every service order that was deleted.
  4. Run the job, then read the Action center message; only orders in a stage that allows deletion are removed.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
SelectOpens the Inquiry dialog to choose which service orders to delete.Microsoft Learn
Show InfologProduces an Action center message listing the deleted service orders.Microsoft Learn

Common errors and fixes

MessageWhat to do
A warning that all service orders will be deleted.No selection criteria were set. Cancel, select Select and enter criteria, for example the service agreement. Microsoft Learn

Test checklist

  1. The Action center message lists only the orders you meant to delete.
  2. Service orders for other agreements are still on the Service orders page.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete a series of service ordersAlways enter selection criteria, such as the service agreement, before you select OK.With no criteria, all service orders are deleted.Who may run Delete service orders?Running it with no criteria and losing every service order.Test: Delete one agreement's orders

Feature management and licence

Licence or add-inIn this system 1 role can run this page: Service dispatcher. No feature needs to be turned on for it.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own service orders. Microsoft data model
Can it be undoneIrreversible: Deleted orders can't be restored.
If you change it laterRunning 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 itemSMAServicePeriodic_Delete Checked in Dynamics 365
FormDialog Checked 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 itTo use itService dispatcher SMADispatcherGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

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

8Sources