SENDFILE

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Sendfile 图标:浅蓝色文档,带有播放箭头

通过 FTP 和 SFTP 协议将文件经由 Internet 传输到远程服务器。 Sendfile 传输一个文件,完成后沿Default 分支继续执行。

依赖关系

当满足以下条件时,系统会承受过大负载:

  • 您的业务单位有超过 ~15 个并发呼叫。
  • 正在运行的脚本包含文件相关操作,例如 Writefile、Readfile 和 Fileexist。

此结果会导致限流。 您的业务单位将在脚本执行和其他功能(包括联系处理和状态更改)方面遇到延迟,直到积压的流程完成为止。

  • Sendfile 需要远程 FTP 服务器的地址、用户名和密码。
  • 如果您正在使用 Cloud Storage Services,请在发送文档时使用 Admin 配置 Copy to SEA 选项,而不要使用 Sendfile 操作。
  • SENDFILE 使用 FTP 协议,该协议使用端口 21。

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

通用

Email 聊天 电话 語音邮件 工作项目 短信

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

文件名称

要传输到远程 FTP 服务器的文件的文件名。

协议

用于发送文件的协议( FTP 或 SFTP )。

目标文件夹

远程 FTP 服务器上要存储传输文件的文件夹。

主机名称

远程 FTP 服务器的主机名(FTP.webaddress.com 或 webaddress.com)。
用户名 用于登录远程 FTP 服务器的用户名。
密码

用于登录远程 FTP 服务器的密码。

被动模式

Determines whether the action uses passive FTP mode to send the file.

在值模式下:单击打开可启用此选项。 如果您不想使用被动模式,请保留设置为关闭。

在表达式模式下:输入 true 可启用此选项。 如果您不想使用被动模式,请将设置保留为 false。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.

Error

Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.