是否有人有从 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/