Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Cannot put output in an expression in an "apply to each" loop

(0) ShareShare
ReportReport
Posted on by 10

Hi there,

I can't seem to wrap an output from a previous block into an expression in an "apply to each" loop.

I have no problem putting the output alone, but embedded in an expression, I have no choice.

Can you help me ?

 

MathieuF_0-1665137079638.png

 

 

Thanks

  • MathieuF Profile Picture
    10 on at
    Re: Cannot put output in an expression in an "apply to each" loop

    Thanks for your help, I tried that and it worked fine.
    Too bad it's not easier to implement.
    Mathieu

  • Verified answer
    Expiscornovus Profile Picture
    31,643 Most Valuable Professional on at
    Re: Cannot put output in an expression in an "apply to each" loop

    Hi @MathieuF,

     

    I see you are writing your expression in the dynamic content tab (contenu dynamique). Have you tried it in the expression tab instead?

     

    If that still does not work, you could try this workaround:

     

    1. Select your field first in the dynamic content tab.

    2. After that use the peek code feature in the settings of the action

    3. Copy the code reference of the field

    4. Go back to the action. Click into the Expression tab this time. Type replace() and copy past your field code reference within the parentheses.

     

     

  • MathieuF Profile Picture
    10 on at
    Re: Cannot put output in an expression in an "apply to each" loop

    Hello @Expiscornovus ,

    exactly the same problem 😞

     

    MathieuF_1-1665388483773.png

     

     

  • Expiscornovus Profile Picture
    31,643 Most Valuable Professional on at
    Re: Cannot put output in an expression in an "apply to each" loop

    Hi @MathieuF,

     

    A workaround could be to add a Compose just before your Excel action and try and write your expression in there. If that works you can copy/paste it afterwards within your field in the expression tab.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow