Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
---
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.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
7 | |
6 | |
6 |