首页 文章

Acumatica API帖子附件评论

提问于
浏览
0

我正在通过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

如何添加附件评论?有人可以帮帮我吗?

非常感谢 .

1 回答

  • 1

    不幸的是,通过Web服务无法实现这一点 .

相关问题