Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Update Item action being pushed into Apply to each

(0) ShareShare
ReportReport
Posted on 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'

  • Verified answer
    DeuA Profile Picture
    9 on at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1