Acumatica供应商导出的期限、AP帐户和AP子帐户返回错误的数据


Acumatica Vendor Export returning wrong data for Term, AP Account, and AP Sub

我使用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
);

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

我降落在这里与相同的错误数据问题;在我的例子中,对于customer表。

我不使用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";在customer的情况下,在第二个嵌套的linkedcommand中找到了"Key"类型。