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 Platform Community / Forums / Power Automate / Help with filter array...
Power Automate
Unanswered

Help with filter array to compare two array variables

(0) ShareShare
ReportReport
Posted on by 550

Hello - ultimate goal is to create an attachment array in a specific sort order as a merged PDF file.

 

I first created three variables:

SortOrder - string pulled from the file names to get the order in which I want to create the attachment array

fileNames - array containing the SortOrder, fileName and fileContent

InitialOrderArray - array containing the SortOrder string

kky1_0-1679493300972.png

Following instructions (http://johnliu.net/blog/2018/12/how-to-implement-sort-with-microsoft-flow-in-3-actions-within-a-loop),

I created a 4th variable SortOrderArray : array containing the correct Sort Order

 

I now want to filter the fileNames array based on the SortedOrderArray in a loop to create an attachment array in the correct order. 

kky1_1-1679493789529.png

 

But the Filter Array action is throwing this error. I also notice my fileContent in the fileNames variable is showing up null even though I can see there is content there.

kky1_3-1679494028506.png

Can anyone guide me on how to do this correctly?

@kky1 

 

Categories:
I have the same question (0)
  • kky1 Profile Picture
    550 on at
    Re: Help with flow design-create attachment array based on sort order variable

    post

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard