title: Salesorderdetail detail not bring amount from product, CRM 2015
body: <p>I have created a plugin in which I am creating Sales Order and then creating salesorderdetail (sales order products) dynamically. Everything is working fine, products are shown correctly in the sub grid on order form but there is no price on the products at all.</p>
  
  <p>I am using the following code to create sales order product.  When I create a quote then quote the product using same code (changing entity and references to quote) then later converting that quote to an order everything is fine.  However when I create an order and order product directly it is not working. </p>
  
  <p>Please suggest a solution.</p>
  
  <pre><code>var orderProduct = new Entity
  {
      LogicalName = "salesorderdetail"
  };
  
  orderProduct.Attributes.Add("salesorderid", new EntityReference("salesorder", OrderId));
  orderProduct.Attributes.Add("productid", new EntityReference(product.LogicalName, product.Id));
  orderProduct.Attributes.Add("quantity", Convert.ToDecimal(1));
  orderProduct.Attributes.Add("uomid", new EntityReference("uom", uom.Id));
  
  _service.Create(orderProduct);
  </code></pre>