2014-11-25 22 views
0

我在Acumatica內部檢索客戶的付款方式時遇到問題。我的代碼出現在下面。如何在Acumatica中檢索客戶的付款方式?

 AR303010Content AR301000 = context.AR303010GetSchema(); 
     context.AR303010Clear(); 
     string[][] AR301000data = context.AR303010Export 
     (
      new Command[] 
      { 
       AR301000.PaymentMethodSelection.ServiceCommands.EveryCustomer, 
       AR301000.PaymentMethodSelection.Customer, 
       AR301000.PaymentMethodSelection.PaymentMethod, 
       AR301000.PaymentMethodSelection.CardAccountNo 
      }, 
      new Filter[] 
      { 
       new Filter 
       { 
        Field = AR301000.PaymentMethodSelection.Customer, 
        Condition = FilterCondition.Equals, 
        Value = "TEST" 
       } 
      }, 
      0, false, false 

     ); 

服務超時而不返回任何記錄。

回答

0

嘗試使用下一個方法,並去除過濾器

 new Command[] 
     { 

新值{值= 「測試」,LinkedCommand = AR301000.PaymentMethodSelection.Customer}, AR301000.PaymentMethodSelection.ServiceCommands.EveryPaymentMethodID, AR301000.PaymentMethodSelection .PaymentMethod, AR301000.PaymentMethodSelection.CardAccountNo },null