【问题标题】:Acumatica Vendor Export returning wrong data for Term, AP Account, and AP SubAcumatica供应商导出返回错误的数据,AP帐户和AP子
【发布时间】:2016-12-22 22:50:01
【问题描述】:

我正在使用 PHP 导出 Acumatica Vendor [AP30.30.00] 数据。我没有问题地获得供应商 ID 和供应商名称,但是当我尝试获取其他关系数据时; Term、AP Account、AP Sub,返回的数据不正确,除了返回的第一个供应商记录外,所有数据都重复。

这是创建命令的代码。

$AP303000Content = $AP303000->GetSchemaResult;

$client->AP303000Clear();
// export 
$AP303000Export = new AP303000Export();
$AP303000Export->commands = array(
        $AP303000Content->VendorSummary->ServiceCommands->EveryVendorID,
        $AP303000Content->VendorSummary->VendorID,
        $AP303000Content->VendorSummary->VendorName,
        $AP303000Content->GeneralInfoFinancialSettings->Terms,
        $AP303000Content->GLAccountsAPAccount->APAccount,
        $AP303000Content->GLAccountsAPAccount->APSub
);

任何想法为什么我没有得到最后三个字段的正确数据?

【问题讨论】:

  • 你用的是什么版本的acumatica?
  • 对于 PHP 专家来说,这个问题似乎是因为缺少命令类型(从 PHP 客户端发送的 SOAP 请求不包含 xsi:type="EveryValue": -----SoapRequest at 8/12 /2016 下午 1:03:17 schemas.xmlsoap.org/soap/envelope" xmlns:xsi="w3.org/2001/XMLSchema-instance" xmlns:xsd ="w3.org/2001/XMLSchema"> acumatica.com/generic">
  • Kirill,目前我们使用的是 5.3
  • 我提供的代码示例导致 ... 有没有人有关于如何获取结果请求的 PHP 示例 正如鲁斯兰所指出的

标签: php acumatica


【解决方案1】:

我来到这里时遇到了同样的错误数据问题;就我而言,对于客户表。

我不使用 php 而是使用 Windows API;助手非常相似。

这是 Windows 语言中everyvalue 助手的简化代码:

   new Field
   {
   ObjectName = CustomerSummary.ServiceCommands.EveryCustomerID.ObjectName,
   FieldName = CustomerSummary.ServiceCommands.EveryCustomerID.FieldName,
   LinkedCommand.LinkedCommand <= CustomerSummary.ServiceCommands.EveryCustomerID.LinkedCommand.LinkedCommand,
   SOAPAddAttribute("xsi:type","EveryValue")
   },

我会循环搜索每个嵌套的linkedcommand 以搜索“xsi:type”="Key";在客户的情况下,在第二个嵌套的linkedcommand 中找到了“Key”类型。

弗朗西斯科。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-02
    • 2018-10-30
    • 1970-01-01
    • 2021-09-19
    • 2011-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多