简体   繁体   English

使用 Power Automate 添加列表项后如何更新列表项

[英]How do I update a list item after adding it with Power Automate

I can't figure out how to do a very simple update of a column value in Power Automate in SharePoint online.我不知道如何在 SharePoint Online 中的 Power Automate 中对列值进行非常简单的更新。 I've seen examples of how to update an item on another list, but nothing that updates a value on the same item that was just added and triggered the workflow.我已经看到了如何更新另一个列表上的项目的示例,但没有更新刚刚添加并触发工作流程的同一项目上的值。 Can anybody give me an example and maybe a very brief explanation?谁能给我一个例子,也许是一个非常简短的解释?

I want to multiply the values of two columns and add it to a third column on the same item which will be blank.我想将两列的值相乘并将其添加到同一项目的第三列,该列将为空白。 I used the formula to update the column I want using values from other columns.我使用公式来更新我想要使用其他列中的值的列。 =[Dollar Amount]*[% Chance] but it says invalid syntax. =[Dollar Amount]*[% Chance] 但它说语法无效。 There seems to be nothing intuitive in this new power automation and it's a horrible failure compared to how easy it used to be.这种新的电力自动化似乎没有任何直观之处,与过去的容易程度相比,这是一个可怕的失败。 MS is always making these mistakes. MS 总是在犯这些错误。

It's Power Automate, not power automation.它是 Power Automate,而不是电源自动化。 Details matter.细节很重要。

First, try to set the column value when you create the item.首先,尝试在创建项目时设置列值。 Then you won't have to edit it.那么你就不必编辑它了。 If you already know the values for [Dollar amount] and [% Chance] (Chance, really? Or Change?), then you can use these to generate the value before you create the item.如果您已经知道 [Dollar amount] 和 [% Chance] 的值(Chance,真的?还是 Change?),那么您可以在创建项目之前使用这些来生成值。 You can do that in a variable or with a Compose action.您可以在变量中或使用 Compose 操作执行此操作。 Then create the item and refer to the variable or the Output of the compose action.然后创建项目并引用变量或撰写操作的输出。

If this is not an option, you can use the Edit Item action and get the ID for the item from the action above that you used to create the item.如果这不是一个选项,您可以使用“编辑项目”操作并从上面用于创建项目的操作中获取项目的 ID。

You say "MS is always making these mistakes."你说“MS 总是在犯这些错误”。 - It's more likely that the problem is a mismatch of data types, eg using text fields in calculations, or typos, or wrong syntax. - 问题更可能是数据类型不匹配,例如在计算中使用文本字段、拼写错误或语法错误。 That's not a mistake made by MS.这不是MS犯的错误。 Again, details matter.再次,细节很重要。

Edit after comments : If the workflow is triggered by an item getting created, then you can use an Edit Item action and refer to the ID from the trigger item.评论后编辑:如果工作流是由创建的项目触发的,那么您可以使用“编辑项目”操作并从触发项目中引用 ID。

The first method, you could use a calculated column.第一种方法,您可以使用计算列。

=[% Chance]*[Dollar Amount]

Second method,use Flow.第二种方法,使用Flow。 在此处输入图片说明 Test result:测试结果: 在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Power Automate 无法将人员更新为 Sharepoint 列表项 - Power Automate cannot update person to Sharepoint list item 创建或修改 SharePoint 中的项目时,如何使用 Microsoft Flow Power Automate 插入和/或更新 SQL 中的行? - How to Insert and/or Update Row in SQL using Microsoft Flow Power Automate when an Item in SharePoint is created or modified? 如何使用电源自动检查给定 SharePoint 站点的用户访问权限 - How do I check user access for given SharePoint site using power automate 如何使用 Power Automate 流程检查 SharePoint 列表中的所有 15K 行 - How can I check all 15K rows in a SharePoint list using Power Automate flow 在 Power Automate 中加入 2 个 SharePoint 列表 - Joining 2 SharePoints list in Power Automate Power Automate:我想使用 Power Automate 将 Excel 文件 (OneDrive) 的日期和时间列移动到 SharePoint 列表 - Power Automate: I want to move Date&Time column of Excel file (OneDrive) to SharePoint List using Power Automate 从 Power Automate 更新 SharePoint 上的文件元数据 - Update file metadata on SharePoint from Power Automate 我是否使用 power automate 自动化了 sharepoint 快速链接 webpart - Did i automate sharepoint quick link webpart using power automate 如何使用列表列值作为标志来解决 Power Automate 流中的无限循环问题? - How to use a list column value as a flag to resolve infinite loop problems in a Power Automate flow? 如何使用 API 查询将图像缩略图放入 Power automate 的 Sharepoint 列表元素中 - How to put an image thumbnail in Sharepoint list element from Power automate with API Query
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM