我可以使用 Web 服务 Acumatica 获得 Next topCount 吗?

Can i get Next topCount with web services Acumatica?

我想通过顶级数据获得顶级数据,“首先是 100,然后是 101 到 200”,是否存在某种方法可以在 Acumatica 上使用 webservice 获得这样的数据?,因为我只看到 API "topCount" parameter and i 只能获取static number of data.

请帮助我不知道这是否适用于网络服务

Acumatica 始终通过 API 导出记录,这些记录按关键字段按升序排序。为了批量导出记录,您应该简单地将 $top 参数与最后检索的关键字段的附加 GreaterThen 条件结合起来:

http://localhost/051989/entity/Default/6.00.001/StockItem?$top=10&$filter=InventoryID gt 'CONGOLFR1'

结合 $top$skip 参数,Acumatica 总是首先请求 $top 参数指定的记录数,然后从 $skip 参数中排除指定的记录数结果集的开头:

http://localhost/051989/entity/Default/6.00.001/StockItem?$top=10$skip=5

跳过参数不适用于 SOAP。要使用 SOAP 批量导出记录,您应该将 RowNumber 属性 的 LessThan 条件与最后检索的关键字段的 GreaterThen 条件结合起来:

using (DefaultSoapClient client = new DefaultSoapClient())
{
    client.Login("login", "password", null, null, null);
    try
    {
        var items = client.GetList(
        new StockItem
        {
            RowNumber = new LongSearch
            {
                Condition = LongCondition.IsLessThan,
                Value = 10
            }
        },
        false);

        int count = items.Length;
        Console.WriteLine("InventoryID | Description | ItemClass | BaseUOM | LastModified");
        foreach (StockItem stockItem in items)
        {
            Console.WriteLine(
                string.Format("{0} | {1} | {2} | {3} | {4}",
                    stockItem.InventoryID.Value,
                    stockItem.Description.Value,
                    stockItem.ItemClass.Value,
                    stockItem.BaseUOM.Value,
                    stockItem.LastModified.Value));
        }

        while (items.Length == 10)
        {
            StockItem filter = new StockItem
            {
                RowNumber = new LongSearch
                {
                    Condition = LongCondition.IsLessThan,
                    Value = 10
                },
                InventoryID = new StringSearch
                {
                    Condition = StringCondition.IsGreaterThan,
                    Value = (items[items.Length - 1] as StockItem).InventoryID.Value
                }
            };

            items = client.GetList(filter, false);
            count = count + items.Length;
            foreach (StockItem stockItem in items)
            {
                Console.WriteLine(
                    string.Format("{0} | {1} | {2} | {3} | {4}",
                        stockItem.InventoryID.Value,
                        stockItem.Description.Value,
                        stockItem.ItemClass.Value,
                        stockItem.BaseUOM.Value,
                        stockItem.LastModified.Value));
            }
        }

        Console.WriteLine();
        Console.WriteLine(string.Format("Stock Items exported: {0}", count));
        Console.WriteLine();
    }
    finally
    {
        client.Logout();
    }
}