From port screen enable logging and Click on activate, Wait it will take time to deploy the service on port. New screen open for all possible fields, Click on Element to sort the list, Enable following fields which are minimum required for Sales Order creation. Now click to check box to enable data policy button document. Set the Name there “ for example I create the port with Name “MySalesOrderService”.Ĭlick on Service Operations add following oneĬlick on arrow button and add these method to service For this you have to go at following link and open AIf Inbound In this article I am configure and consume Sales Order service and share c# code for calling a Sales service and consume.Įnable the methods and configure the inbound port. I have to consume SalesSalesOrderSerivce. This article also shows you what classes to look at to help troubleshoot the issue.For my session for Integration with Dynamics Ax 2012. Not having an external relationship should give you access to all sales orders. It points you to the “external relationship” which is where you can setup what customer you are associated with. If you can only see one customer’s sales orders or zero sales orders when viewing the All Sales Order List Page this blog can help you out. I removed the customer from USSI as they had no transactional data and then went back to USMF Company and I could see all the sales orders again. I’m going to assume this error is due to data damage or a coincidence with the demo dataset. I took a look in the application at this customer’s account and I didn’t find that I was a contact on the customer or that I had any association with the customer other than in the backend. The funny part here is the comment in the code says that it is checking to see if you are a contact person for a customer account.Īnyway, I ran a select statement in SQL and it showed that my user relationship was associated with a customer in USSI which is a company that I had never used. Then it looks to see if that user relation has a customer associated to it which I don’t but the system said I did. I kept falling into the ‘else’ on line 35 which runs a select statement that checks to see if you have a user account with a user relation setup which I do. I started to dig into where the “IsCustomer” variable is set and I was brought to Classes\EP\isCustomer. I shouldn’t even hit line 8 because I don’t have the external relationship setup which the ‘if condition’ checks for as seen in the screenshot below. This class has a method called “InitializeQuery” which kept pushing me down a path on line 8. I started out with finding what class was tied to the SalesTableListPage form and it was a class called SalesTableListPageInteraction. This is primarily used with external users.Ģ. I didn’t have anything else setup that I thought was going to cause a problem. If you can only see one customer’s sales orders or no sales orders show up in the All Sales Order List Page this blog can help you out. I’ve had this problem multiple times since AX 2012 has come out when using the Contoso Demo Dataset and finally I gave in and figured out why the heck the problem was occurring on my instance.ġ. I didn’t have an external relation setup on my user account.Ī. External Relations are what is setup to filter the AX so you can only see you’re customer account records. Dynamics GP to Dynamics 365 Business Central.Dynamics NAV to Dynamics 365 Business Central.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |