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'
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
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1