【发布时间】:2019-01-01 11:15:03
【问题描述】:
我正在尝试使用以下代码通过 SOAP API 插入调整记录。
Dim NewAdjustment As Adjustment = New Adjustment With {
.ExternalRef = New StringValue With {.Value = "TEST1234"},
.Description = New StringValue With {.Value = "1234TEST"},
.[Date] = New DateTimeValue With {.Value = "12/20/2018"},
.Details = {New AdjustmentDetail With {
.BranchID = New StringValue With {.Value = "PRODWHOLE"},
.InventoryID = New StringValue With {.Value = "18r.5"},
.WarehouseID = New StringValue With {.Value = "RETAIL"},
.Qty = New DecimalValue With {.Value = 100}
}}
}
Dim InsertAdjustment As Adjustment = CType(soapClient.Put(NewAdjustment), Adjustment)
我收到一个错误 px.data.pcexception: Error: 'Branch' cannot be empty。错误:“后期”不能为空。插入“收据”记录时出错,至少引发了一个错误。
我猜我需要填写这些值,但我不知道该怎么做。我在表格中看到了它们,但在 API 接口中没有看到。我是 Acumatica 的新手,所以我猜这只是我缺少的东西。
提前致谢。
【问题讨论】:
-
您尝试将合约 API 请求发送到哪个屏幕?
-
我不确定我是否理解这个问题。使用合约 API,我不应该影响业务对象而不是屏幕吗?在这种情况下,我试图复制 IN303000 上的逻辑。在转换过程中,我们使用它来保持库存与旧系统同步。
标签: acumatica