Dynamic CRM - how to take XML File and create an order

Can someone tell me how I can create a plugin or api to take an XML file that contains a new order information and create a new order entity for Dynamic CRM?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Feridun KadirPrincipal ConsultantCommented:
If you want to programmatically create orders in CRM you need to call the CRM web services API. This is described in the SDK, here is a link to the orders part https://msdn.microsoft.com/en-gb/library/gg309346.aspx

Is that what you want to do?
teknovationAuthor Commented:
Hi and thanks for replying! It's close, I want to be able to load data into CRM via XML file but using C# to pull the data in the file into the correct fields in CRM
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:

First, go through the tutorial on how to read XML string/file through C#.
Find your attribute values/information from XML and store them in local variables...

Now, for plugin, go through these sample codes:
Use Entity class C# - https://msdn.microsoft.com/en-in/library/gg309731.aspx
Creare Entity Record C# - https://msdn.microsoft.com/en-us/library/gg328416.aspx

Feel free to ask any questions with your doubts.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.