vTiger .net c#销售订单失败- MANDATORY_FIELDS_MISSING " message ":"

本文关键字:MANDATORY FIELDS MISSING message 失败 net 单失败 vTiger | 更新日期: 2023-09-27 18:14:09

在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]);

vTiger .net c#销售订单失败- MANDATORY_FIELDS_MISSING

请核对联系人、帐户和产品编号。模块id是错误的。联系人以12X开头,账户从11X开始,产品从14X开始,assign_user_id,如果它分配给用户则为19X,如果它分配给组则为20X。同时将contact_id改为contactid,account_id改为accountid。