【问题标题】:Acumatica API post Attachment with CommentAcumatica API 后附评论
【发布时间】:2016-12-16 12:07:15
【问题描述】:

我正在通过 API 创建一个带有附件的新销售订单,如下所示:

TestApi.Command[] commands = new TestApi.Command[] { 
                new TestApi.Value {Value = "SO", LinkedCommand = SO301000.OrderSummary.OrderType},
                new TestApi.Value {Value = "<NEW>", LinkedCommand = SO301000.OrderSummary.OrderNbr},
                new TestApi.Value {Value = "ACTIVESTAF", LinkedCommand = SO301000.OrderSummary.Customer},
                new TestApi.Value {Value = "thuytrantest", LinkedCommand = SO301000.OrderSummary.CustomerOrder},
                new TestApi.Value {FieldName = "CAM00895_test11.jpg", Value = Convert.ToBase64String(filedata), LinkedCommand = SO301000.OrderSummary.ServiceCommands.Attachment},
                new TestApi.Value {FieldName = "Lich_thi_12-2014_test2.pdf", Value = Convert.ToBase64String(filedata2), LinkedCommand = SO301000.OrderSummary.ServiceCommands.Attachment},

                SO301000.DocumentDetails.ServiceCommands.NewRow,
                new TestApi.Value {Value = "HQ", LinkedCommand = SO301000.DocumentDetails.Branch},
                new TestApi.Value {Value = "AALEGO500", LinkedCommand = SO301000.DocumentDetails.InventoryID},
                new TestApi.Value {Value = "WHOLESALE", LinkedCommand = SO301000.DocumentDetails.Warehouse, Commit = true},

                SO301000.DocumentDetails.ServiceCommands.NewRow,
                new TestApi.Value {Value = "VA", LinkedCommand = SO301000.DocumentDetails.Branch},
                new TestApi.Value {Value = "AAPOWERAID", LinkedCommand = SO301000.DocumentDetails.InventoryID},
                new TestApi.Value {Value = "RETAIL", LinkedCommand = SO301000.DocumentDetails.Warehouse, Commit = true},

                SO301000.Actions.Save,
                SO301000.OrderSummary.OrderNbr
            };

运行正常,但我想添加如下图所示的评论

Acumatica Attachment Comment Image

如何添加附件的评论?谁能帮帮我?

非常感谢。

【问题讨论】:

    标签: api soap acumatica


    【解决方案1】:

    很遗憾,通过 Web 服务无法实现这一点。

    【讨论】:

    • 好伤心!非常感谢你
    猜你喜欢
    • 2014-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-21
    • 2012-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多