Service managementPerform periodic tasksService orders
SMAServicePeriodic_Cancel
Used by
Service dispatcher
Business process
Create service request by using Service management in Dynamics 365 Supply Chain Management
Menu item
SMAServicePeriodic_Cancel
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, “Cancel and revoke”, 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 cancels several service orders at once, or reverses their Canceled status, based on the selection criteria you set.
What you do here
Use this page to cancel service orders that have become obsolete, or to uncancel orders with Revoke cancel; orders whose stage does not allow cancellation, that have item requirements, or that are already posted cannot be cancelled.
Example
For example, one of the service orders generated for January becomes obsolete because the job is cancelled, so the dispatcher cancels the service order.
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 service orders have become obsolete, for example because the planned job was cancelled, or when a cancellation must be reversed.
How often
On demand, when obsolete service orders need to be cleaned up.
What the output shows
The selected service orders change to Canceled, or back to In process with Revoke cancel. Orders already Canceled are not affected by a cancel run, and In process orders are not affected by a revoke run.
Cancel, or uncancel, a set of service orders at once.
Steps from Microsoft
Go to Service management > Perform periodic tasks > Service orders > Cancel service orders.
On the Parameters FastTab, set Revoke cancel to No to cancel the selected orders, or to Yes to reverse their Canceled status back to In process.
Set Show Infolog to Yes to get an Action center message that lists the orders that were cancelled or uncancelled.
Select Filter and, on the Range tab of the Inquiry dialog, set the criteria for the obsolete service orders, then select OK to close the dialog.
Select OK and check the Action center message: orders whose stage doesn't allow cancellation, that have item requirements or that are already posted are not cancelled.
Produces an Action center message listing the orders that were cancelled or uncancelled.Microsoft Learn
Revoke cancel
No cancels the selected orders; Yes reverses the Canceled status back to In process.Microsoft Learn
Filter
Opens the Inquiry dialog where you choose the service orders by range criteria.Microsoft Learn
Common errors and fixes
Message
What to do
Some selected service orders were not cancelled.
Orders can't be cancelled when their stage doesn't allow it, when they have item requirements, or when they are posted. Move them to a stage that allows cancelling or remove the item requirements first. Microsoft Learn
Test checklist
The Action center message lists the orders you meant to cancel.
The orders show Progress Canceled on the Service orders page.
Orders with item requirements or posted lines are still unchanged.
Cancel rather than delete when you want to keep a record of planned visits that didn't happen.Cancelling keeps the order with Progress Canceled and can be reversed; deleting removes it.
Cancelling sets the orders to Canceled and uncancelling returns them to In process; already cancelled orders are not affected by a cancel run and in-process orders are not affected by a revoke run. Microsoft Learn
Technical architect
6Technical
Menu item
SMAServicePeriodic_CancelChecked 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
PrivilegeCancel service ordersSMAServicePeriodic_Cancel
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: Cancel 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