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

Notifications

Announcements

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.

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 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,129 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard