Member-only story
Power Automate New UI/Designer: Avoid undesired ‘For each’ in Trigger output
Jan 10, 2024
Issue : When users create a new flow using a trigger like ‘When an item is created or modified’ and utilize any property from the trigger output in subsequent actions, they observe an undesired addition of the ‘For each’ loop.
Cause:
Digging into the cause of this issue reveals that the trigger action returns a response in an array. This array format triggers the ‘For each’ loop, making it an integral part of the workflow, even when users may not necessarily require it.
Solution:
- Enable ‘Split On’ Feature
- Set Array Value : @triggerOutputs()?[‘body/value’]