web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : XNTlXusb9XBNOdnucxIatz
Power Automate - Building Flows
Answered

Update Item action being pushed into Apply to each

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2023 10:25:40 by 9

I have a power automate flow which gets triggered when an Item is created in "Purchase Orders" list, I then update a single line of text in the item using an "Update Item" action, but when I add the "ID" from dynamic content of "When an Item is Created", the update item action gets pushed in a "Apply to Each" loop, I'm not sure what is going wrong here as previously this didn't happen, shouldn't the "When an Item is Created" action "ID" return only one value and not an array of values, which is why i presume the "Apply to Each" loop is being added.

"Apply to each", value from previous step is: triggerOutputs()?['body/value']
While in place of the Id in update item action it is coming: item('Apply_to_each')?['ID']. shouldn't this value be triggerBody()?['ID'], I tried manually adding triggerBody()?['ID'] but it gave following error:
WorkflowOperationParametersRuntimeMissingValue. The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: The resolved string values for the following parameters are invalid, they may not be null or empty: 'id'

I have the same question (0)
  • Verified answer
    DeuA Profile Picture
    9 on 28 Nov 2023 at 10:50:46
    Re: Update Item action being pushed into Apply to each

    Found the solution, go to the trigger condition, select settings in the new UI and select as below:
    Split On: Turn "On"
    Array: Open the dropdown and select @triggerOutputs()?['body/value']

    This solved the issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete