How to do it...

  1. Create a new Dynamics 365 for Finance and Operations project in Visual Studio and name it BuildingCustomService.
  2. In the project, create a new class, which will serve as a data contract for our custom web service. Name this class PacktCustBalanceDataContract. This class is decorated with the DataContract attribute and the data methods are decorated with DataMemberAttribute. We will create the following data methods in our class, which will be exposed to the external world as parameters:
        [ 
          DataContractAttribute, SysOperationGroupAttribute('Date', "@ApplicationPlatform:SingleSpace", '1') ] class PacktCustBalanceDataContract { TransDate transDate; CustAccount accountNum; DataAreaId dataAreaId; /// <summary> /// Gets or sets ...

Get Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.