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 / Iterate through file name
Power Automate
Answered

Iterate through file name

(0) ShareShare
ReportReport
Posted on by 66

I'm iterating through an excel and have a condition to compare to Files. When I use the Files variable it uses the path as opposed to File.Name.  How can I get it to iterate through the File.Name?

 

 

This is my flow:

 

  1. Get files in folder - Variable: Files
  2. Launch Excel
  3. Get first free column/row form Excel worksheet - variable: ExcelIntance
  4. Read from Excel worksheet - Variable: ExcelData
  5. For each loop --> value to iterate: %ExcelData% -->Variable: CurrentItem2
    1. IF
      1. First operand: %Files%
      2. Operator: Contains
      3. Second operand: %CurrentItem2['JCN']%
      4. Display message
I have the same question (0)
  • Verified answer
    rich0087 Profile Picture
    66 on at

    I figured it out. you have to set up a for each loop with a get file path part

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 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard