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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Regular Visitor

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..

url = "",
header=[#"Content-Type" = "application/x-www-form-urlencoded"],
postData = [
token1 = "xxxxxxxxxxxxx",
token2 = "xxxxxxxxxxxxx",
action = "read",
scope = "xxxxxxxxxxxxxxxxxxxxxxxxx"
response = Json.Document(
     Headers = header,
     Content = Text.ToBinary(Uri.BuildQueryString(postData))





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

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.


Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors