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 / Problem with lists and...
Power Automate
Answered

Problem with lists and data types

(0) ShareShare
ReportReport
Posted on by 25

Hello!

 

I’m having trouble with the ‘subtract lists’ action and data types.

 

List no. 1 contains a list of all files downloaded from a folder. Then, as part of the flow, I perform operations on specific files from that list and save the paths to these files on list no. 2. I want to compare both lists to repeat the operation on those files from list no. 1 that are not on list no. 2.

 

The problem is that list no. 1 is a list of file elements, and list no. 2 is text elements. I tried to change the values on list no. 2 to files using the ‘if file exists’ action, I tried to convert the elements of list no. 1 to text using a new variable - unsuccessfully. 

 

I would appreciate any tips on how to make a string variable be read as a file path or vice versa. 

Regards!

Iza

  • Verified answer
    eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at

    When you loop through the array of files the currentItem should have property called ".Name"

    eetuRobo_3-1718628667617.png


    Then when you loop through just check if the array with file names as text contains CurrentItem.Name.

    eetuRobo_1-1718628477604.png

     

    So you go through the file list in For each loop. Then with condition check if the file name from the text array list contains CurrentItem.Name which is text type.

     

  • IzabelaZarnowsk Profile Picture
    25 on at

    Hi!

    It works! Thanks a lot!

    Best Regards,

    Izabela

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard