Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hugo_barbara
Helper I
Helper I

Create a Post request with application/x-www-form-urlencoded - Errro Method


Hi guys, how are you?!
I'm trying to make a post request with x-www-form-urlencoded, and I've already searched in some forum posts and managed to get to the step and inform the return of the request, but it says that it is necessary to use the POST method. Could you help me with this question.

Here's my unsuccessful attempt to fetch the data..

let
url = "xxxxx.xxxxxxxx.com.br/API/index.php",
header=[#"Content-Type" = "application/x-www-form-urlencoded"],
postData = [
token1 = "xxxxxxxxxxxxx",
token2 = "xxxxxxxxxxxxx",
action = "read",
scope = "xxxxxxxxxxxxxxxxxxxxxxxxx"
],
response = Json.Document(
Web.Contents(
url,
   [
     Headers = header,
     Content = Text.ToBinary(Uri.BuildQueryString(postData))
   ]
     )
)
in
response


---

hugo_barbara_1-1659375283294.png

 



 




4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @hugo_barbara 

 

I think this is a Post request exactly. Are you able to use some API Test Tool like Postman to test the request using the same data? Will it return the same message?

 

Best Regards,
Community Support Team _ Jing

Hello,
When making the request following the parameters passed in postman, it returns the data I need as answers.

Hi @hugo_barbara 

 

Is it possible to capture the screenshots of request settings in Postman and remove sensitive data, after that paste the screenshots here? I need to check the M code according to that. 

 

Best Regards,
Community Support Team _ Jing

hi @v-jingzhang 

Follows the print of the same request made via postman.

print.png


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors