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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problems with Apply to...
Power Automate
Suggested Answer

Problems with Apply to each

(0) ShareShare
ReportReport
Posted on by 4
Hello, the flow was  work normaly and now I have problems with Apply to each an for each. I need only apply to each, but he puts me automaticly for each in the flow. Why¿
Categories:
I have the same question (0)
  • MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
    @YC-24020600-0, can you provide the power automate (Workflow) screenshot or run history and please provide the insights much more brief.
  • YC-24020600-0 Profile Picture
    4 on at
    Hello, yes, of course! Run History told me: 

    Action 'For_each' failed: Unable to process template language expressions for action 'For_each' at line '0' and column '0': 'The template language function 'createArray' expects a comma separated list of parameters. The function was invoked with no parameters. Please see https://aka.ms/logicexpressions#createArray for usage details.'.

    u but for 1 week the same flow was run.. its very strange.  
  • YC-24020600-0 Profile Picture
    4 on at
    here when was run it
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
    @YC-24020600-0, thanks for sharing the screenshot of the Power Automate (flow).
     
    You selected a dynamic content value that is an array (e.g.,) Attachments, value, items, etc.
     
    When Power Automate sees we are using an array where a single value is expected it automatically wraps the next action in a For each / Apply to each to loop through each item in that list this is the default behaviour.
     
    from the screenshot which you shared, the loop is happening right after the email trigger, around GetAttachment and your Condition.
     
    If you want only first item / last item - first(triggerOutputs()?['body/attachments']) / first(triggerOutputs()?['body/attachments'])?['id'] / first(triggerOutputs()?['body/attachments'])?['name'] in the Get Item Attachment.
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard