如何在 NetSuite 中创建的工作流按钮上添加操作

发布于 2025-01-18 10:39:52 字数 183 浏览 5 评论 0原文

我想在 SuiteScript 2.0 中单击按钮发送电子邮件,但发送电子邮件的按钮是使用工作流程创建的,我尝试使用 clientScript,但 clientScript 似乎仅在编辑模式下工作,我如何在查看模式下执行此任务?阅读 NetSuite 上的帮助我发现我们可以在工作流操作脚本中执行此操作,但我无法真正理解这一点。请任何帮助都会非常有用。

I want to send an email on button click in SuiteScript 2.0, but the button to send email is created using workflow, I tried using clientScript but clientScript only seems to be working when it is edit mode, how can I perform this task in view mode ? reading the help on NetSuite I found out that we can do this in Workflow Action Script but I can't really understand this. Please any help would be really useful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过期情话 2025-01-25 10:39:52

您不需要使用脚本。我已经在直接的工作流程中完成了这项工作。

  1. 在状态 1 中创建按钮
  2. 创建状态 2
  3. 使用“在按钮上执行”触发器创建转换
  4. 在状态 2 进入时添加电子邮件操作。

就是这样。

You don't need to use a script. I've done this in a straight workflow.

  1. Create the button in state 1
  2. Create state 2
  3. Create Transition using the "Execute on Button" trigger
  4. Add email action in state two On Entry.

That's it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文