Filtering a JSON Array in Power Automate
Hi,
Has anybody filtered JSON in Power Automate?
[{"Constituent ID":"270000","First Name":"Andy","Surname":"Test","Email - primary Number":"xxxxxxxx@chss .org.uk","Event ID":"NXTTest25","Event Name":"NXT Event Testing","Event Merge Name Description":"NXT Event Testing","Participant Registration Date":"8/28/2025"}]
What I'm thinking about doing is sending an email to anyone where the Participant Registration date = Yesterday or Last week from an Outlook address as an alternative to a MailChimp.
Shaun
Answers
-
you can certainly use Filter array action in power automate to do what you want to do, however, you do need to pay attention to the date data. The data you showed in your post looks to be Query API downloaded data, where the date is in "m/d/yyyy" format. This format to power automate is just a normal string, not a date string. You are likely going to need to use the parseDateTime() expression on the Participant Registration Date before you can do the logical comparison to the addDays(utcNow(), -1) or addDays(utcNow(), -7)
1 -
Hi Alex, thank you for that, really appreciated.
The data presently is coming through the Power Automate query connector and into a .txt file if that makes any difference.
Am I performing that parseDateTim() after "Compose" and the initial "Parse JSON"?
Shaun
0 -
you can do it multi-actions process or, you can do it in 1 action directly in filter array. the multi-action process (for no/low coder) in a nutshell:
- Query API get the data in JSON (you are getting "text" back, but it is not a text file)
- not going into the multi-action here to execute, to poll if complete, to check success, to download
- Parse JSON on the data that came back so you can use dynamic content more easily
- use action to get yesterday date, potentially needing to convert from UTC to your timezone
- Use Filter Array
- in the condition, you will use expression to parseDateTime() of the Registration date equals to yesterday date
Condense version without so much more action:
- Query API get the data in JSON (you are getting "text" back, but it is not a text file
- not going into the multi-action here to execute, to poll if complete, to check success, to download
- Filter Array
- From:
json(base64ToString(body('HTTP_Get_Query_Result')?['$content']))- Assuming the HTTP action name to download query result is HTTP Get Query Result
- Condition
- LEFT
parseDateTime(item()?['Participant Registration Date'], 'en-US', 'M/d/yyyy')
- is equal to
- RIGHT
addDays(startOfDay(convertFromUtc(utcNow(), 'Eastern Standard Time')), -1)
- LEFT
- From:
1 - Query API get the data in JSON (you are getting "text" back, but it is not a text file)
-
Just wanting to post a thanks to @Alex Wong here.
Managed to find some time to look at this and now have a working that is emailing anyone (in a test event presently) with a registration date = yesterday and saving that email into the constituents records.
Thank you again Alex.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 357 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 117 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) 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
- 778 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

