UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2026年4月27日

创建活动

UiPath.MicrosoftOffice365.Activities.Calendar.CreateEvent

描述

使用 Microsoft Graph创建事件API 在指定的日历(日历)中创建新事件。

When creating your event, you specify the date and time (Start Time, End Time, and Time Zone) and the content that you want to include (Body and Subject). Additionally, you have the option to assign this event a category from your specified calendar (Categories).

创建事件后,活动将输出一个Event对象,您可以在后续活动(例如, “添加参加者 ” “添加位置” 等)中将其用作输入变量。

作用域

此活动需要以下作用域:

  • Calendars.ReadWrite

  • Calendars.ReadWrite.Shared

项目兼容性

Windows - Legacy | Windows

配置

属性

常见
  • “显示名称”- 活动的显示名称。 此属性支持 String 变量和字符串格式的值。
活动内容
  • 正文- 活动的正文。如果选择了“正文是 HTML”选项,则需要以 HTML 格式指定正文。此属性支持String变量和字符串格式的值。
  • 正文是 HTML - 如果选中,正文将以 HTML 格式解读。该字段仅支持“布尔值”。
  • 主题 - 事件的主题。此属性支持 String 变量和字符串格式的值。
事件计划
  • End Time - The end time for the event. This field supports only DateTime variables.

  • Start Time - The start time for the event. This field supports only DateTime variables.

    备注:
    • Your DateTime values must be formatted as MM/DD/YYYY Hour:Minute:Seconds (e.g., 10/31/2019 12:00:00).
    • The DateTime format is auto-corrected if you enter enough details. For example, if you enter 10/31/19 3pm it auto-corrects to 10/31/2019 15:00:00.
  • TimeZone - The time zone in which the Start Time and End Time are interpreted. The default value is Your system's time zone (not displayed). Enter a valid String (e.g., "Pacific Standard Time").

输入
  • 帐户-(可选)要与之交互的电子邮件地址。这可能包括当前用户有权访问的任何共享邮箱。如果留空,则假定为当前用户的帐户。此属性支持String变量和字符串格式的值。

    备注:

    Account field is mandatory for ApplicationIdAndSecret and ApplicationIdAndCertificate authentication types.

  • 日历- 要用于创建活动的日历。可以使用获取日历活动进行检索。如果不提供值,则使用默认日历。此字段仅支持Calendar变量。如果输入值,请使用获取日历活动( Calendar默认日历)中的输出属性变量。如果您使用的是日历输出属性变量,请在数组中指定要使用的项目(例如myCalendar(0) )。

其他
  • “私有” - 选中后将不再以“Verbose”级别记录变量和参数的值。该字段仅支持“布尔值”。
选项
  • Categories - The categories associated with the event. This field supports only String[] variables. Your value must match a name from your specified Calendar list of categories (see example image below). To enter one category, include it between { } and declare it with " " (e.g., {"Purple category"}). To enter multiple categories, include all between { }, declare each with " ", and separate each by a comma (e.g., {"A CustomCategory", "Purple category"}).

文档图像

  • “全天” - 如果选中,则会将事件计划为一整天。如果选中,在“开始时间”“结束时间”属性中输入的值将被覆盖。即使选择此属性,也需要在“开始时间”“结束时间”属性中输入值。该字段仅支持“布尔值”。
  • Show As - The user's availability during the event. Select one of the six options: Unknown, Free, Tentative, Busy, Oof or WorkingElsewhere. The default value is Free.
输出
  • 事件- 创建的事件。其他活动可以使用此对象来添加参加者或修改信息。此字段仅支持Event变量。如果您计划在后续活动中使用输出数据,则为必填。您可以将此变量用作其他活动中的输入变量,例如“添加参加者”“添加位置”等。

工作方式

以下步骤和消息序列图是活动从设计时(即活动依赖项和输入/输出属性)到运行时如何工作的示例。

  1. 完成步骤。
  2. “Microsoft Office 365 作用域”活动添加到您的项目。
  3. (可选)添加活动或运行输出Calendar对象(例如,获取日历)的外部流程。
  4. Add the Create Event activity inside the Microsoft Office 365 Scope activity.
  5. 输入“事件内容” 和“事件计划” 属性的值。
  6. 为“输出”属性创建并输入 Event 变量。
  7. 运行活动。
    • 您的输入属性值将发送到创建事件API。
    • API 会将 Event 值返回到您的输出属性变量。

文档图像

  • 描述
  • 作用域
  • 项目兼容性
  • 配置
  • 工作方式

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新