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 / Custom Connector POST ...
Power Apps
Answered

Custom Connector POST Json

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm creating an API Custom Connection with POST, but it is not working

 

I managed to make the connection on Postman, but when I tried the importing in powerapps it did not work.

 

here are some prints, can you help me?

 

http://www.erp.ladder.com.br/api/erp/saldo-estoque-ladder/

 

HTTP 200 OK
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept

{
 "scs": {
 "estoque": 1,
 "saldo": 1,
 "reserva": 0
 },
 "exists": true,
 "rj": {
 "estoque": 0,
 "saldo": 0,
 "reserva": 0
 }
}

 post json:
{"produto": "catalog_number"}

 

Duvida 1.pngDuvida 2.pngDuvida 3.pngDuvida 4.pngDuvida 5.pngDuvida 6.pngDuvida 7.pngDuvida 8.pngDuvida 9.png

I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Where do you deploy your API?

    Based on the error message that you mentioned, it seems to tell that PowerApps could not send a POST request to your API server.

     

    Please check if you have configured a port your API server, if yes, please consider modify the Host  value within your custom connector as below:

    www.erp.ladder.com.br:Port Number

    Also please check if you have enabled the Remove Server connect functionality for your API Server. Please also check and see if the following article would help in your scenario:

    https://dwmkerr.com/publish-web-web-deploy/

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xida-msft  

     

    is a rest api using standard port 80,

     

    the API works perfectly in POSTMAN, but powerapps is giving this error

     

    follows image attachment of the functioning of the api

    Duvida 10.png
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I talked to my developer and he said that the requests arrive, but lack the body in JSON format

    KeyError at /api/erp/saldo-estoque-ladder/ ‘produto’

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about the Request Body of your Post Request in your custom connector?

    Do you specify the data transfer format within the Headers part of the Post request within your custom connector?

     

    On your side, please consider specify the data transfer format within the Headers part of the Post request within your custom connector as below:2.JPG

    Content-Type application/json
    Accept application/json

    then save your custom connector, try it again, check if the issue is solved.

     

    In addition, you could also consider take a try to create a OpenAPI definition file for your Rest API, then create a custom connector based on the OpenAPI definition file, check if the issue still exists.

     

    More details about creating custom connector in PowerApps, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

     

    Best regards,

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I solved the problem 

     

    release the external remote access in api server.

     

    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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard