Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

GET HTTP Body - Empty Object not coming through as null (or anything at all) using items() expression using SELECT Data Operation flow

(0) ShareShare
ReportReport
Posted on by

I access data via a HTTP action to a REST API service.

 

The HTTP response has an object which mostly has and Item "ProjectManager" and properties (ID,Name) but this can be empty - depending if a user has updated this on our cloud service or not.

 

I have performed "Parse Json" to the HTTP Body and attempted to use a SELECT Data operation flow to map the response before eventual movement of this to SQL server, but I get the following error:

 

The execution of template action 'Select' failed: The evaluation of 'query' action 'where' expression '{ "Project_ID": "@item()['ID']", "Project_Manager_ID": "@item()['ProjectManager']['ID']", "Project_Manager_Name": "@item()['ProjectManager']['Name']" }' failed: 'The template language expression 'item()['ProjectManager']['ID']' cannot be evaluated because property 'ID' doesn't exist, available properties are ''. Please see https://aka.ms/logicexpressions for usage details.'.

 

 

Sample response as follows:

 

[
    {
        "ID": 71571,
        "ProjectManager": {
            "ID": 123,
            "Name": "John"
        }
    },
    {
        "ID": 71250,
        "ProjectManager": {}
    },
    {
        "ID": 21286,
        "ProjectManager": {
            "ID": 569,
            "Name": "Ben"
        }
    },
    {
        "ID": 81250,
        "ProjectManager": {}
    },
    {
        "ID": 41818,
        "ProjectManager": {}
    }
]
 
jmc2408_0-1611747190588.png

 

I've tried to follow a few of the suggestions others who have had a similar issue with, making changes to the auto generated schema etc but nothing has work.  I'm by no means an expert so hopefully someone has a few ideas I could try?
 
Thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow