0
Я создаю новый заказ на продажу с приложением по API, как показано ниже:Acumatica API после Attachment с Комментарий
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
Как добавить комментарий к приложению? Кто-нибудь может мне помочь?
Большое спасибо.
Так грустно! Огромное спасибо –