I want to create a sales order through xml port. i want that xml port fetch data from one file and create a sales order
Sorry that I, again, has to ask you which version this is about and how did you imagine doing it? What have you tried your self, before asking this question?
You have to give a bit more details if you like us to be able to guide/help you.
But I can say so much that using and XMLPort to import a sales order is absolutely not a development task for a beginner. Personally, even with my experience, then I would never be using an XMLport for something like this. XMLports are great for exports and simple XML file imports.
Unless the XML file you are importing is very simple, and all your data is pre-validated, then it's much easier to program it directly in a codeunit, while using the build-in/dotnet XML functionality (depending on version of NAV/BC). But even here, then I normally would not dream about importing it directly into the sales header and line tables. I would create a buffer table(s), where I would store the data from the XML file, while validating it and creating the sales header and sales line records.
If you were using a newer version (NAV 2016+) then you could also use the Data Exchange Framework, where you basically can use a number of predefined functions to import your file. The advantage of DEF is that the XML file is described in data, so a different format is just a different data definition. It takes some time to study how these design patterns work, but once you understand it, then its very powerful.
But again, without more details about your requirements etc., then its very hard to suggest exactly what you should do......
thats good sir..thanks for the information
but i am just the beginner and working on dynamics 365 business central and i am facing lot of difficulties learning it
i have done almost basic stuff just like creating actions , pages , tables but i am unable to get help in deep learning.
it will be greatfull of yours if you suggest me from where i can learn dynamics 365 business central development and Al extension
and also there are no institutes nearby offering this course
The normal place to start, if you work for a Dynamics partner, would be on the Dynamics Learning Portal site, your seniors should be able to give you access. Some of the training plans "requires" actual workshops/on-site courses, but most doesn't. A lot of examples and training materials, as well as videos.
If you do not have access to the DLP, then you can find most of the videos from DLP on Youtube too. There are hundreds of videos there about NAV/BC. A great place to start is the official Dynamics 365 Business Central channel. If you want to learn more in-dept, then check out the NAVskills (Mark Brummel channel).
Even though Eriks very fine suggestions, then I must say there is nothing that beats on-site training!!! What you are trying to accomplish is learning to drive a car with a book and youtube. And if you have a drivers permit, then you know that it is simply not possible.So even though a training centre is far, far away, proper training is mandatory. You will waste and fail in hundredes of manhours if you don't.
I completely agree with ERIK. Why because if you want to create a sales order through XML port you will get a lot of issue and Every field you need to validate while importing the Data.
So you need to use the XML ports for importing the data except the table dont having any validation fileds and for export the data.