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

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Trouble filtering an array

(1) ShareShare
ReportReport
Posted on by 12
Hello, clever people. I am trying to build a flow that will copy the original version of documents from one SharePoint folder to another. Most of the flow is working fine, but I cannot, for the life of me, succeed in filtering so *only* the original versions are pulled.
 
Here is my flow:
 
I have tried filtering by every imaginable way, including "IsCurrentVersion" eq "False," VersionName, and VersionID. Nothing seems to sort the version 1.0 documents from the rest.
 
I am attaching a PDF with samples of the Select output and Filter array input and output. I would be very grateful if someone can tell me where I've gone wrong. Thank you!
I have the same question (0)
  • abm abm Profile Picture
    32,535 Most Valuable Professional on at
    Trouble filtering an array
    Hi 
     
    Thank you for the reply.
     
    Try item?['VersionLabel'] I can see you using the '{ }' brackets
  • scoyphenson Profile Picture
    12 on at
    Trouble filtering an array
    I think the zero at the beginning of the output is because it's first in the array.
     
    Thank you very much, but I'm already using item()?['{VersionLabel}'] to filter.
  • Suggested answer
    abm abm Profile Picture
    32,535 Most Valuable Professional on at
    Trouble filtering an array
    Hi
     
    Thanks.
     
    The below is your select output not sure why it starts with 0.???
     
     
     
    0.{"value":[{"Created":"2022-01-31T19:20:31"
    IsCurrentVersion":true
    VersionId":1024
    VersionLabel":"2.0"
     
     
    Anyway try the filter with item()?['VersionLabel']
     
     
  • scoyphenson Profile Picture
    12 on at
    Trouble filtering an array
    Is this what you meant?
  • abm abm Profile Picture
    32,535 Most Valuable Professional on at
    Trouble filtering an array
    Hi
     
    Could you please show me your Select action step mappings?
     
    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 745 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 528 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 320

Last 30 days Overall leaderboard