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 Apps / customs connector test...
Power Apps
Answered

customs connector test failed but those swagger script of customs connector can work in postman

(0) ShareShare
ReportReport
Posted on by 47

I developed a customs connector. one of API is using application/x-www-form-urlencoded paramsmeter in body .

when i test the connector in powerapp,  it always return 400 bad request "Required String parameter 'q' is not present (400)",

but when copy the swagger script into postman, it can work fine. i'm not sure what's wrong on powerapp

shinydeng_0-1702526600446.png

 

shinydeng_1-1702526646397.png

 

shinydeng_2-1702526865338.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @shinydeng 

    According to your screenshot , your Content-Type is application/x-www-form-urlencoded.

    You may need to configure the customer connector:

    vyueyunmsft_0-1702532373515.pngvyueyunmsft_1-1702532382296.png

    And in the flow , we need to use the encodeUriComponent() function to encode our parameters,like this:

    vyueyunmsft_2-1702532425204.png

     

    And you can refer to these two blogs:

    Solved: Re: How to Specify a Raw Body on a Custom Connecto... - Power Platform Community (microsoft.com)

    How to use form-urlencoded content type in Power Automate Custom Connector - ESPC Conference, 2024 (sharepointeurope.com)

     

    Best Regards,

    Yueyun Zhang

  • shinydeng Profile Picture
    47 on at

    Thanks a lot. the issue was fixed

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard