使用查询在 netsuite 中按上次修改日期清点项目

Inventory items by lastmodified date in netsuite using query

我想通过 lastModified 获取 netsuite 中的 inventoryItems 列表 date.This 是我尝试过的方法:{{REST_SERVICES}}/query/v1/suiteql

Body : 

{
    "q": "SELECT * FROM inventoryItems dateModified >= '08/17/2020'"
}

but it says error:

Invalid search query Search error occurred: Failed to parse SQL [SELECT * FROM inventoryItems dateModified >= '08/17/2020']: syntax error, state:961(10102) near: >=(1,43)\nno_root_node(-1000) near: no root node(0,0).

错误很简单,您的SQL查询无效。它缺少 WHERE 子句。

尝试改变

SELECT * FROM inventoryItems dateModified >= '08/17/2020'

SELECT * FROM inventoryItems WHERE dateModified >= '08/17/2020'

记录和字段名称在分析浏览器中:https://[account].app.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2020_1/analytics/record/item.html

{
    "q": "SELECT id, itemid FROM item WHERE itemtype = 'InvtPart' AND lastmodifieddate >= '08/17/2020'"
}

SELECT * 抛出 UNEXPECTED_ERROR。您必须列出所需的字段。

如果不想使用SuiteQL,可以使用Record Collection filtering

GET /record/v1/inventoryitem/?q=lastModifiedDate AFTER "8/17/2020"

https://[账户].app.netsuite.com/app/help/helpcenter.nl?fid=section_1545222128.html