如何在Netsuite中为用户删除多个联系人? [英] How to delete multiple contacts for the user in Netsuite?

查看:145
本文介绍了如何在Netsuite中为用户删除多个联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过Mass Updates删除多个电话.我可以用UIRESTlet代码删除单个contactleadcustomer ... etc.

I could delete multiple phone calls through Mass Updates. I can delete single contact,lead,customer...etc in UI and RESTlet code.

我想删除UI中的多个contacts,leads, customers, prospects, partners and vendors,并且还要使用RESTlet代码.

I want to delete multiple contacts,leads, customers, prospects, partners and vendors in UI and also using RESTlet code.

推荐答案

您可以创建一个简单的自定义批量更新脚本,该脚本可以部署为使用批量更新"功能删除任何记录类型.最基本的情况如下所示:

You can create a simple, custom mass update script that can be deployed to delete any record type using the Mass Update functionality. At the most basic, it would look like this:

function deleteRecord(recordType, recordId) {
    nlapiDeleteRecord(recordType, recordId);
}

创建一个新的Mass Update脚本并将该脚本部署到联系人记录中.

Create a new Mass Update script and deploy the script to Contact records.

然后,您可以启动新的批量更新,选择自定义更新",您应该会在此处看到您的自定义批量更新.然后,它就像任何其他大量更新一样工作.构建查询以选择要删除的记录,然后单击预览"按钮,然后单击执行更新"按钮.

Then you can start a new mass update, select Custom Updates and you should see your custom mass update listed there. Then it works just like any other mass update. You build your query to select the records you want to delete, then click the Preview button, then click the Perform Update button.

在部署此脚本时,请确保仅对管理员角色可用,并且我通常将其保留在测试"中,这使其仅对我可用.这意味着我真的需要先确定自己在做什么,然后再使用它.

When I deploy this script, I make sure that it's only available to the Administrator role and I usually leave it in Testing which makes it available only to me. It means I really need to be sure of what I'm doing before I use it.

这篇关于如何在Netsuite中为用户删除多个联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆