I have created new two tables and one form by using this two tables in AX 2012.Now I want to create “Custom Service” with “Create”,“Read”,“Find” Operations and also add validation on that custom service.(eg Create SalesOrder by using SalesSalesOrderService.create)
Please Help me to create a CustomService with create Operation.
When implementing a custom service operation, you’re writing (almost) normal X++ code. The “create” operation will be simply a method that fills some fields and calls insert() method on the table buffer.
The answer to your question is already just above your question.
Operations of custom services are class methods written in X++. If you know how to insert data in an X++ class method, you know how to insert data in custom services.