user4274335
user4274335

Reputation: 71

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. 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. 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.

Upvotes: 0

Views: 3427

Answers (2)

Amos
Amos

Reputation: 2091

The first method, you could use a calculated column.

=[% Chance]*[Dollar Amount]

Second method,use Flow. enter image description here Test result: enter image description here

Upvotes: 1

teylyn
teylyn

Reputation: 35935

It's Power Automate, not power automation. 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. You can do that in a variable or with a Compose action. 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.

You say "MS is always making these mistakes." - It's more likely that the problem is a mismatch of data types, e.g. using text fields in calculations, or typos, or wrong syntax. That's not a mistake made by 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.

Upvotes: 1

Related Questions