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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Merge 2 separate Filte...
Power Automate
Answered

Merge 2 separate Filter array action output into one array

(0) ShareShare
ReportReport
Posted on by 164

Is it possible to merge the output from the below filter actions into one array for additional filtering? I need to put the output of both into one array so I can remove duplicates returned in both actions.

 

RADical_0-1681785585763.png

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    You can add the output from each of your Filter arrays into a union expression to combine them.

     

    union(body('Filter_DNAT_array_1'), body('Filter_DNAT_array_2'))
  • RADical Profile Picture
    164 on at

    @grantjenkinsAs always, thanks for the swift response and great help.

     

    That worked to combine the items into one, but for some reason it didn't get rid of the duplicates.

     

    This was the output of the union:

     

     

     

    [
     {
     "Row_Ref": "4",
     "DNAT_RuleCollectionPriority": "\n600",
     "DNAT_RuleCollectionName": "\nnat",
     "DNAT_RuleName": "\nib-test-udp-75",
     "DNAT_Source": "\n*",
     "DNAT_Port": "\n75",
     "DNAT_Protocol": "\nUDP",
     "DNAT_Destination": "\nxx.xxx.xxx.59",
     "DNAT_TranslatedAddress": "\nxx.xxx.1.6",
     "DNAT_TranslatedPort": "\n75",
     "DNAT_Action": "\nDnat",
     "DNAT_DestinationFQDNs": "\n",
     "DNAT_DestinationIPGroups": "\n"
     },
     {
     "Row_Ref": "4",
     "DNAT_RuleCollectionPriority": "\n600",
     "DNAT_RuleCollectionName": "\nnat",
     "DNAT_RuleName": "\nib-test-udp-75",
     "DNAT_Source": "\n*",
     "DNAT_Port": "\n75",
     "DNAT_Protocol": "\nUDP",
     "DNAT_Destination": "\nxx.xxx.xxx.59",
     "DNAT_TranslatedAddress": "\nxx.xxx.1.6",
     "DNAT_TranslatedPort": "\n75",
     "DNAT_Action": "\nDnat",
     "DNAT_DestinationFQDNs": "\n",
     "DNAT_DestinationIPGroups": "\n"
     },
     {
     "Row_Ref": "15",
     "DNAT_RuleCollectionPriority": "\n100",
     "DNAT_RuleCollectionName": "\nnat",
     "DNAT_RuleName": "\nib-thisisatest-tcp-447",
     "DNAT_Source": "\n*",
     "DNAT_Port": "\n447",
     "DNAT_Protocol": "\nTCP",
     "DNAT_Destination": "\nxx.xxx.xxx.61",
     "DNAT_TranslatedAddress": "\nxx.xxx.x.9",
     "DNAT_TranslatedPort": "\n447",
     "DNAT_Action": "\nDnat",
     "DNAT_DestinationFQDNs": "\n",
     "DNAT_DestinationIPGroups": "\n"
     }
    ]

     

     

     Is there any way to get rid of the duplicate item in the return format? As you can see the output has two inner blocks with the exact same data.

  • RADical Profile Picture
    164 on at

    @grantjenkinsThanks for your help...I think it got me on the right path. Much appreciated!

     

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard