vTiger .net C#销售订单失败 - MANDATORY_FIELDS_MISSING“消息”:"

时间:2015-09-23 06:16:18

标签: c# .net vtiger

尝试在VTiger版本6.15.7.6中创建销售订单时抛出异常

发送以下实体 用于创建销售订单

            VTigerListItem[] arrListItem = new VTigerListItem[1];
            arrListItem[0] = new VTigerListItem() { productid = "25x405",     listprice = "468.25", quantity = "1" };
            VTigerSalesOrder[] arrListItem1 = new VTigerSalesOrder[1];                
            arrListItem1[0] = new VTigerSalesOrder()
            {
                start_period = "2015-01-01",
                end_period = "2015-01-01",
                subject = "Testing",
                contact_id = "4x680",
                sostatus = SoStatus.Created,
                account_id = "3x679",
                assigned_user_id = "19x11",
                bill_street = "test bill street",
                invoicestatus = Invoicestatus.Created,
                productid = "25x405",                   
                cf_1121 = "RDMS",
                createdtime = "2015-01-01",
                modifiedtime = "2015-01-01",
                LineItems = arrListItem
            };  

            var desc = vtigerApi.Create(arrListItem1[0]);

1 个答案:

答案 0 :(得分:0)

请检查Contactid,Accountid和Productid。 模块ID错误。 联系人以12X开头, 帐户以11X开头, 产品以14X开头, assign_user_id,如果它分配给User然后19X,如果它分配给Group然后20X。同时将contact_id更改为contactid,将account_id更改为accountid。