0

I know how to invoke/call an AIF service from managed code. I have seen examples of how to create custom services in X++.

What I would like to know is whether I can create a service in C# using the visual studio integration. In other words, my implementation of the custom service is in C#, I will use whatever tables/queries I need to use using the .NET/VS integration.

Is this possible?

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
dgorti
  • 1,221
  • 2
  • 9
  • 4

1 Answers1

0

An AIF service need a X++ class extending AifDocumentService and must have methods in order to attach the service operations to the methods.

The service methods may call C# methods thus acting as a proxy, but must nonetheless conform to the base class; findKeys must return a AifEntityKeyList etc.

If you want a document service returning AX data, it would be an uphill battle to code it in C#.

enter image description here

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50