Forum Discussion
Unsupported Refresh on Web.Contents
- Anonymous6 years ago
I was able to import and also get the Gateway refresh to work now. I had to split it up this way:
= Json.Document(
Web.Contents("https://name.com:port",
[
RelativePath="/api/viewContents/projects/v1/PowerBiProjects?projectId=-1"
])
)
That data source is not well formatted. Refer to the example provided by ibarrau
It may also help not to conflate the web request and the JSON parser.
Try having the source as just the web contents.
Source = Web.Contents(URL,Parameters),
JS = Json.Document(Source),
viewContentsV1 = JS[viewContentsV1],
rows = viewContentsV1[rows],
His format would not work - my import fails.
- ibarrau6 years agoSuper User
The format I have sent is the best practise. I might have some mistake somewhere. Try "-1" with double quotes in the parameter.
Regards,
- Anonymous6 years agoNot applicable
I was able to import and also get the Gateway refresh to work now. I had to split it up this way:
= Json.Document(
Web.Contents("https://name.com:port",
[
RelativePath="/api/viewContents/projects/v1/PowerBiProjects?projectId=-1"
])
)