Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Running a SysOperation service


Because a user is able to run a service by starting it in the user interface, the menu item is an important part of a SysOperation service. As we have seen earlier, the menu item has the following properties that are required by the SysOperation framework:

  • A parameters property that contains a reference to the service and service operation

  • An enum parameter that determines the execution mode

  • An object property where the controller that will be used is specified

  • A label that will be displayed on the dialog

We will look at the first two properties now and discuss the others later in the chapter.

Service and service operation

The menu item is linked to the service and the service operation in the Parameters property. The format in which this parameter should be provided is ServiceClass. ServiceOperation, where ServiceClass is the name of the service class and ServiceOperation is the name of the service operation, separated by a period.

Execution modes

The SysOperation...