Forum Discussion

RainerBe's avatar
RainerBe
Frequent Visitor
4 years ago

Using a POSTMAN request in PowerBI

Hey all, 

 

I'm new to in coding and Im attemping to migrate a functioning post request from postman to PBI.

I can generate the code in a variety of languages from postman and am wondering what's the easiest way to 

copy and paste this code into PBI in order to run the POST request from PBI directly.

 

Here's an example of the code in HTTP:

 

POST mypath HTTP/1.1
Host: myhost
Content-Type: application/json
Accept: */*
Cache-Control: no-cache
accept-encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

{
"request":
{
"username": "myusername",
"password": mypassword"
}
}

 

The request delivers the following result

 

{
"subscribeResult": {
"expires": "2021-09-18T07:10:21.000Z",
"sessionId": "mysessionid",
"username": "myusername"
}
}

 

Has anyone an idea how can implement this kind of request in PowerBI?

 

Thanks in advance

Bernd

3 Replies