GETEMAIL

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

Getemail 图标:带有向下箭头的橙色信封

从文件服务器检索入站电子邮件内容,并将其存储为结构化变量。 结构化变量可以在任何可引用常规变量的位置被引用。

Getemail 操作可用于为包含电子邮件片段的变量命名。 例如,如果将 BodyTextVar 变量命名为“正文”,则可以在任何支持花括号的位置使用 {body} 变量。 这对生成自动响应特别有用。

依赖关系

在电子邮件主题行中使用管道分隔符 ( | ) 会将主题分割(成数组),因此您需要将主题行重新拼接起来。

支持的脚本类型

Icon of gray-green envelope

Email

输入属性

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

属性

说明

添加说明文字

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

容器变量 The name of the structured variable that contains all other variables. EML is the default name.
主题变量 The name of the variable that holds the subject of the message.
从变量 The name of the variable that contains the From address of the email.
结束变量 The name of the variable that contains the To address of the email.
CC 变量 The name of the variable that contains the list of CC list of recipients on the email.
日期变量 The name of the variable that contains the date of the email.
正文文本变量 The name of the variable that contains the body text of the email.
附件列表变量 The name of the variable that contains the list of file attachments.
正文文本长度最大值 A picklist of the maximum length of the BodyTextVar string. By default, it is 2,000, but may be increased to 32,000.

结果分支条件

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

条件

说明

默认

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.

提示与技巧

从技术角度而言,Getemail 操作会创建一个可以在代码片段操作中调用的 C# 类。