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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / filter JSON based on d...
Power Automate
Unanswered

filter JSON based on date range

(1) ShareShare
ReportReport
Posted on by 248
HI, I'm looking to filter a block of JSON returned from a service query to just the last day.  I've tried things such as utcNow(createddatetime),-1) however not sure how to just pull those results from the returned JSON and place the filtered items into a new JSON output in the flow if that makes sense.  Unfortunately there is no filter on the JSON query that's allowed when doing the query or I would have done that.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,912 Most Valuable Professional on at
    You might be able to use a filter array or a condition action for this. Depends a bit on the schema/structure of the returned json. 
     
    Can you share a sample output of the returned json. Can you also share a screenshot of your current flow setup?
  • cbernier12 Profile Picture
    248 on at
    sure:
     
    {
        "type": "object",
        "properties": {
            "@@odata.context": {
                "type": "string"
            },
            "@@odata.count": {
                "type": "integer"
            },
            "@@odata.nextLink": {
                "type": "string"
            },
            "value": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "createdDateTime": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "name",
                        "createdDateTime"
                    ]
                }
            }
        }
    }
  • Expiscornovus Profile Picture
    33,912 Most Valuable Professional on at
    Thanks for sharing. Try the below setup in a filter array. 
     
    Use the value property from your Parse JSON action in the From
     
    In the filter use the createdDateTime field on the left and use the is greater than or equal to operator and on the right use the expression
    addDays(utcNow(), -1)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard