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 Apps / How to access custom c...
Power Apps
Unanswered

How to access custom connector 400 response body

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I have not found a way to read the contents of my custom connector error response. I would like to show a response error message to the user. Response body is always blank.

puavo_1-1615873465326.png

I have two different responses defined in the custom connector. The 200-response works just the way I want it to.

puavo_2-1615873631709.pngpuavo_3-1615873647927.png

Any ideas what I'm doing wrong? Thanks.

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@puavo,

    Based on the issue that you mentioned, do you want to add multiple response?

    Do you define a proper Resposne part within the OpenAPI definition file (for your custom connector)?

    Generally, one way to add multiple responses is to download the OpenAPI definition from the custom connectors list and to open it in a text editor. Next, find your existing response and append a second response. Finally, you can recreate the connector with your updated file.

    Please check the sample code as below:

    image.png

    In addition, please consider to delete the connector and remove all the connection. Recreate it.

    Also, here is some threads you can check if it helps on your issue.

    Custom connector - Adding sample response data thr... - Power Platform Community (microsoft.com)

    Solved: Custom Connector - Power Platform Community (microsoft.com)

    Hope it could help.

    Regards,

    Qi

     

  • puavo Profile Picture
    8 on at

    Thanks for the answer @v-qiaqi-msft .

    Yes. I have already added two response just like you just like you explained.

    puavo_0-1615959040275.png

    Problem is that 400-response is always blank, I can't access to it. 200-response works fine.

    puavo_1-1615959757185.png

     


     

  • puavo Profile Picture
    8 on at

    I found this topic: https://powerusers.microsoft.com/t5/Building-Power-Apps/Error-handling-with-Custom-API/m-p/7726/highlight/true#M3446 "If you are hoping to get service-specific error codes and handle them via formulas, that is not possible in PowerApps today

     

    Is that still true today?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard