Posts

Showing posts with the label D365

Lets make a service

Image
Custom services in D365 is a nice way to integrate with D365. In this post I will show how one can set up to receive JSON data and store it in a Table. To create a service you need these elements to make it operational A service class A service  A service group 1. Create your service class.  I created this simple service class that takes JSON as a parameter and inserts the data into a table. class TestService {     public System.Object testService(Newtonsoft.Json.Linq.JArray _data)     {         TestTable testTable;         int counter;         System.String netString = '';               System.IO.StringWriter          stringWriter    = new System.IO.StringWriter();         Newtonsoft.Json.JsonTextWriter  jsonWriter      = new Newtonsoft.Json.JsonTextWriter(stringWr...