Discovered a Power Automate Expression That's Worth Knowing!
intersection() compares two arrays and returns a new array containing only the values they have in common.
Example:
Array 1 — Constituent Codes: Individual, Board Member
Array 2 — Specific List: Trustee, Board Member
Result: Board Member
I'm nesting intersection() inside length() so I can use the result directly in a Conditional Control to determine whether the constituent has any of the codes I'm looking for:
length(intersection(variables('SpecificList'), body('SelectConstCodes'))
If the result is greater than 0, there's a match.
This method is so much better than looping through one of the arrays to compare each current value against the other one.
Answers
-
Great post of tip.
A few note as this expression is explored to be used:
- intersection is case sensitive, so "John Smith", is not the same as "john smith"
- intersection can work with an object, but it will look at every property in an object to find "common" item
- not the same:
[{"First":"Alex","Last":"Wong"}][{"First":"Alex","Last":"wong"}] - in the context of RE NXT, your "get constituent code" will return additional data such as
date_added, anddate_modified, so you will need to do a "Select" operation to select the description of the constituent code first before doing anintersection.
- not the same:
I like using Filter Array action as it has less action but is a little harder to use with advanced mode filtering. Filter Array is also case-sensitive.
2 -
Shared this at the August 2026 Power Automate User Group meeting. As requested, here's a sample of the intersection() expression in action. Pay attention to the "Read Me" compose at the top of the flow for the elements that need updating. Let me know if you have any questions.
0
Categories
- All Categories
- New K-12 Community Home (TEST)
- New Higher Education Home Page (Test)
- New Impact Edge Community TEST
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 8 Blackbaud Community Help
- 222 bbcon®
- 1.4K Blackbaud Altru®
- 410 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 687 Blackbaud Grantmaking™
- 604 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 954 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7K Blackbaud Raiser's Edge NXT®
- 4K SKY Developer
- 258 ResearchPoint™
- 123 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 248 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 829 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


