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 / Null Body on HTTP Request
Power Automate
Answered

Null Body on HTTP Request

(0) ShareShare
ReportReport
Posted on by 546

Hello All,

 

I have done lots of searching for the solution to this issue but no matter now much I look, I can only find partially similar issues which does not help resolve what I am encountering.

 

My Flow

 

What I am trying to achieve is to obtain ID numbers from an API endpoint, then use them ID numbers in another API call within an apply to each loop to request additional data, I am going to output this via email once I have compiled the data.

 

Background

 

I have been success in calling both endpoints however, when attempting to compile the data from all of the calls, I am running into issues. Some of the calls that are being made are returning "body": [], this is expected as I know that there will be several calls where no data is expected. Unfortunately, I do not know on any given day, which of the calls will not i.e. ID number 5 today provides data, tomorrow it may or may not provide data. I have determined that the length is 30 when body = [] so have used a condition which appears to work. I have then parsed the JSON if the length is greater than 30 so that I can rebuild the JSON outside of the array that it is currently in.

 

Issue

 

When composing the data outside of the loop (which I have done before), it is creating multiple null's in the JSON, no matter what I do, I cannot seem to get rid of them.

 

Screenshots

 

Redders_0-1661255332812.png

Redders_1-1661262262078.png

 

Redders_0-1661262196094.png

 

Please can someone help?

Categories:
I have the same question (0)
  • Verified answer
    Redders Profile Picture
    546 on at

    I managed to work this out after multiple days of trial and error.

     

    What I did was to add an Apply to each and Append to array variable building up the JSON within

     

    Redders_0-1661438678278.png

    As I was specifying that only the body was inputted, it took out all of the null's that I was experiencing

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard