Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Input parameter of Apply to Each contains invalid expressions?

(1) ShareShare
ReportReport
Posted on by 18
Hi
 
I a new-ish flow writer. I have previously created a simple flow which checks a SharePoint library, and applies two condition checks and updates a choice column based on the outcome. This was created on the old UI.

I am trying to recreate this at my new workplace. I have a SharePoint Document Set library, and want to do the same sort of checks:
  • If the Alert Date is > Now, change the status to Good. If not, change the status to Expiring. (This gives 60 days' notice that this is about to expire.)
    • For those Expiring TMPs, now check if the End Date is > Now, and change the status to Expired.
I want this flow to run automatically each day, so have started with a Recurrence. Next I have Get files (properties only). Then I have Apply to each. I then have my two condition checks, but I have an error - The input parameter(s) of operation 'Apply to each' contains invalid expression(s)
 
 
Parameter is body/value
 
 
Also see here where I had some help but not enough help for me to mark this as solved: https://community.powerplatform.com/forums/thread/details/?threadid=6bf49ea0-da6f-ef11-a671-6045bda935ce In that thread, the person 'helping' me got me so far, but then got grumpy with me and refused to continue to help. I've tried researching on my own, and researching threads on this forum, but I can't understand what I am doing wrong. And in the meantime, Flow won't let me save my progress, so I've had this window open on my PC for days...
 
Looking forward to your help.
Graeme_NZ
 
  • Expiscornovus Profile Picture
    31,732 Most Valuable Professional on at
    Input parameter of Apply to Each contains invalid expressions?
    Great to hear you managed to fix it. And thanks for feeding back how you managed to solve it.
  • Suggested answer
    Graeme_NZ Profile Picture
    18 on at
    Input parameter of Apply to Each contains invalid expressions?
    Hi - Thanks for your response. I got busy on another project and didn't notice this answer until today. I logged back in to my draft flow and realised I had a missed character. Seems to be ok now. I'll mark this as solved so it doesn't clutter up the list.
  • Expiscornovus Profile Picture
    31,732 Most Valuable Professional on at
    Input parameter of Apply to Each
    Can you share a screenshot of the code view tab of the Get Files (properties only) & Apply to each actions? This way we can double check what is used and this will help to find a root cause.
     
    Example Get files (properties only) code view
     
     
    Example Apply to each
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 >