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

Added product line to order but does not fill unit per price filed

$
0
0

Hi

Using SDK I remove an old product line in order, and add a new one, but when added, it does not brind unit per price f the product and it is set to zero. But when I add it manually it works fine. 

Here is my code: 

 var createQuoteDetail = new Entity("salesorderdetail");
                    createQuoteDetail.Attributes["productid"] = new 
EntityReference("product",entityref.Id); createQuoteDetail.Attributes["quantity"] = Convert.ToDecimal(1); createQuoteDetail.Attributes["salesorderid"] = orderentity createQuoteDetail.Attributes["uomid"] = GetDefaultUnit(service); var quotedetaulsid = service.Create(createQuoteDetail);



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images