Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Dynamics AX 2012 Services

You're reading from   Microsoft Dynamics AX 2012 Services Everything you need to know about implementing services with Microsoft Dynamics AX 2012 is contained in this hands-on guide. Easy to follow and totally practical, it's a must for both new and experienced AX Dynamics developers.

Arrow left icon
Product type Paperback
Published in Dec 2012
Publisher Packt
ISBN-13 9781849687546
Length 196 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Creating a SysOperation service

In this demonstration, we will create a SysOperation service that detects members with overdue rentals. These members will get the status "blocked" by setting a checkbox on the member in the database.

The dialog for the service will look like the following screenshot:

Creating a SysOperation service

As you can see, a query enables you to select the members for which the rentals should be checked. By enabling the checkbox, you can override the number of overdue days that are allowed before a member is blocked.

The SysOperation framework uses services to execute business logic, so you have already learned most of the skills needed in Chapter 4, Custom Services.

Data contract

We will create a new data contract, but because we have already demonstrated the creation of a data contract in the earlier chapters, we can be briefer here. The data contract that we'll make will have three members:

  • parmNumberOfOverdueDays: Holds the value for the number of overdue days that are allowed.
  • parmOverrideNumOfDays...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime