Power Automate + SharePoint 列表 - Compose/Get 项目操作错误

Power Automate + SharePoint list - Compose/Get Item operation error

我目前正在努力处理与此几乎相同的流程:https://powerusers.microsoft.com/t5/Building-Flows/Find-Lowest-number-in-list-column-and-use-to-sort-items/td-p/777718

我的流程在最后一次 Get Item 操作中失败并出现以下错误:

Error
Action 'Get_item' failed

Unable to process template language expressions in action 'Get_item' inputs at line '0' and column '0': 'The template language expression 'outputs('Get_items_2')?['body/value'][outputs('Compose')]['ID']' cannot be evaluated because property '{
  "value": [
    {
      "@odata.etag": "\"4\"",
      "ItemInternalId": "3",
      "ID": 3,
      "Title": "Name Surname",
      "Counter": 11.0, [...]

属性 信息的这一部分必须编辑

[...] cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.

我的流量:

基本上我需要提取此 ID(在本例中为 3)作为 Get Item 的 ID,然后我就完成了。我只是无法在没有任何错误的情况下通过最后一行。

非常感谢任何建议!

希望对您有所帮助。使用此列表...

...有了这个非常的基本概念和表达...

...它产生了预期的结果。

最重要的是,我认为您不需要 Compose 操作,只需使用以下表达式查询 Get items 结果集 ...

first(body('Get_items')?['value'])['id']

鉴于您只想从 Get items 调用返回 1 条记录,以上似乎是实现您想要的结果的最简单方法。

如果 Get items returns 什么都没有,您可能需要执行一些错误检查。