transactions - 从 Netsuite 中删除交易记录

标签 transactions netsuite journal

是否有人有从 Netsuite 删除测试交易记录的经验。现在我可以看到的是,转到每个客户记录并删除特定的销售订单/现金销售/日记,这是一项非常痛苦的任务(数据量很大)。还有其他我不知道的方法吗?任何帮助将不胜感激。

编辑: 这里所说的场景是针对生产环境的。我们确实有一些影响财务报告的测试客户和交易记录。所以我们想摆脱所有这些测试数据(相当大)。

谢谢!

最佳答案

您可以使用内联编辑一次删除多条记录,请参阅文档 here (需要登录 NetSuite):

To delete field data by editing inline:

Enable the Edit button on the search results of the data containing the fields you want to delete.

Select an editable element, in the first row, then hold down the Shift key and select the same element in the last row.

While all of those fields in the column are highlighted, choose delete from the menu on the left. You can also set your segment size higher in Home > Set Preferences, to do more than 50 at a time.

另一个选择是写 Mass Update脚本,这是一个非常基本的示例:

function perform_update(rec_type, rec_id) {
    try {
        nlapiDeleteRecord(rec_type, rec_id);
    } catch(err) {
        nlapiLogExecution('DEBUG', 'Error deleting record', 'type = ' + rec_type + ", id = " + rec_id);
    }
}

关于transactions - 从 Netsuite 中删除交易记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33749927/

相关文章:

SSIS 错误 - 无法执行事务操作,因为有正在处理此事务的待处理请求

sql - 在 MS SQL Server Management Studio 中处理事务的最佳方式

netsuite - 如何为Netsuite中的所有角色部署RESTlet脚本?

javascript - Netsuite Suitescript API - 搜索交易记录返回重复项

windows - 估计 NTFS 卷上的 USN 记录数

linux - 如何保存journalctl --verify的输出

sql - 使用简单更新的计数器列的原子增量

php - Neo4j - 尽管使用合并但重复

javascript - 简单脚本,错误 : "Syntax error: missing : after property id"