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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Connector POST ...
Power Apps
Unanswered

Custom Connector POST Json

(0) ShareShare
ReportReport
Posted on by

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
    on at
    Re: Custom Connector POST Json

    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
    on at
    Re: Custom Connector POST Json

    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

  • Community Power Platform Member Profile Picture
    on at
    Re: Custom Connector POST Json

    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
    on at
    Re: Custom Connector POST Json

    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
    on at
    Re: Custom Connector POST Json

    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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard