Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 50056

Re: How to call webservice with body parameters in power bi?

$
0
0

I am able to hit the webservice url

but getting invalid parameters with zero results.

here is the m script that i have used.

let
    url = "https://url",
    body = "{
	""query"":[
{
	""EMP_ID"": ""if"",
	""userName"":""name"",
	""lastAccessedDateTime"":""2016-10-18T07:10:40.000Z"",
        ""deviceId"":""id"",
   	""appKey"":""key"",
	""tokenid"":""kkshdsfif"",
        ""appType"":""web""
}
]
}",
    Source = Json.Document(Web.Contents(url,[
             Headers = [#"ContentType"="application/json"]
         Content = Text.ToBinary(body) 
             ]   
        ))
in
    Source

 

Here is the output 

Capture.PNG

 

Can anybody please suggest me.

Mohan.V


Viewing all articles
Browse latest Browse all 50056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>