UiPath Documentation
activities
latest
false
生产力活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

遍历列表项目

“遍历列表项目”活动,使用 Microsoft Graph 获取列表项目 API 对指定 SharePoint 列表中的每个列表项目执行一个或一系列活动。

UiPath.MicrosoftOffice365.Activities.SharePoint.ForEachListItem

描述​

使用 Microsoft Graph获取列表项目API 对指定 SharePoint 列表中的每个列表项目执行一个或一系列活动。

备注:

此活动不支持暂留。

项目兼容性​

Windows - Legacy | Windows

配置​

属性面板​

常见​
  • “显示名称”- 活动的显示名称。 此属性支持 String 变量和字符串格式的值。
输入​
  • Filter - An optional OData filter.
    备注:

    强烈建议在筛选器表达式中仅使用索引列。该活动提供Prefer: HonorNonIndexedQueriesWarningMayFailRandomly标头,以允许在筛选器中使用非索引字段,但请注意,此类查询可能会在大型列表上失败。字段名称应用于筛选器表达式中,而非字段显示名称中。

  • List - The Sharepoint list on which the operation is performed. This field supports only Office365SharepointList variables.
其他​
  • “私有” - 选中后将不再以“Verbose”级别记录变量和参数的值。该字段仅支持“布尔值”。
输出​
  • Index - A zero-based index that specifies which element of the current collection is being iterated. This field supports only integer and Int32 variables.

筛选示例​

下表为查询 IMAP 邮件消息时可能有用的筛选器示例:

查询筛选器表达式
“优先级”字段值为“正常”的所有列表项目"fields/Priority eq 'Normal'"
“状态”字段值为“已完成”的所有列表项目"fields/Status eq 'Completed'"
2021 年 5 月 26 日报告的所有列表项目"fields/DateReported eq '2021-05-26'"
尚未完成的所有高优先级列表项目"(fields/Priority eq 'High') and (fields/Status ne 'Completed')"
在字段“标题”中包含“work”且字段“内部”的值为 True 的所有列表项目"substringof('work',fields/Title) and (fields/Internal eq 1)"
ID 为 6 的用户记录的所有列表项目(有关用户的详细信息存储在“用户信息列表”隐藏列表中)"fields/IssueloggedbyLookupId eq 6"
值为“ john.smith@example.com ”的所有列表项目“电子邮件” 字段(这是“用户信息列表”隐藏列表的示例)“fields/EMail eq‘ john.smith@example.com ’”
在 6 月报告并分配给 ID 为 6 的用户的所有已完成列表项目"(fields/Status eq 'Completed') and (fields/DateReported ge '2021-06-01' and fields/DateReported le '2021-06-30') and (fields/AssignedtoLookupId eq 11)"
  • 描述​
  • 项目兼容性​
  • 配置​
  • 属性面板​
  • 筛选示例​

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新