Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Create New Order Entity from XML file in CRM (C#)

$
0
0

I am working on a project for CRM and trying to create a plugin for CRM Dynamic. Thisi plugin will take the data in an XML file and create an Order in CRM.

Can someone please assist me with this? I'm currently trying to write this in C#.

I came up with a plan to use LINQ to read the XML file but was lost on how to proceed for creating a new order in CRM using the values in the XML file.

Here's my existing XML file:

<?xml version="1.0" encoding="UTF-8"?>
<Orders xmlns="www.test-inc.com">
<Order>
<Meta>
<Version>testVersion</Version>
</Meta>
<Header>
<OrderHeader>
<PartnerId>test</PartnerId>
<PurchaseOrderNumber>01263-F5</PurchaseOrderNumber>
<PurchaseOrderDate>10/31/2013 10:08:00 AM</PurchaseOrderDate>
</OrderHeader>

<OrderDetail>

<PurchaseOrderTime>10:08:00 AM</PurchaseOrderTime>
<CustomerShippingAccount>W564</CustomerShippingAccount>
<CustomerPONumber>test123</CustomerPONumber>

</OrderDetail>
</Header>
</Order>
</Orders>


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>