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 / python Script Output i...
Power Automate
Unanswered

python Script Output in JSON Format

(0) ShareShare
ReportReport
Posted on by 31

Hello All I have a python script as below and i am getting the Resposne Status Code like"401", or"200".
response =requests.request("POST", url, headers=headers, data=payload, files=files)
print(response)..

But i have a requirement to get the not only response status code and i need to get the JSON output also, I have to pass the JSON output into another API Request.

Can someone help me on this 
i tried
Print(response.json()), but it's not working.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Vamsi_Envoy 

     

    What output you are getting when using print(response.json()) 

     

  • Vamsi_Envoy Profile Picture
    31 on at

    {'success': True, 'message': None, 'model': {'files': []}}

    This is the JSON format i am getting 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Vamsi_Envoy 

     

    When you run the same file from python , what output you are getting ?

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard