Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17928

Problem with Web.Page not found in Custom Data Connector

$
0
0

Hi,

 

I'm trying to follow some examples that I found about parsing the content of a web page into a custom connector, but it is giving me an error : "The name 'Web.Page' doesn't exist in the current context".

 

webPage.PNG

 

This is my code:

 

// This file contains your Data Connector logic
section TestList;

[DataSource.Kind="TestList", Publish="TestList.Publish"]
shared TestList.Contents = () =>
  let

    executeReport = () => 
    let
        urlReport = "localhost:8080/jsontest/",
        sourceReport = Web.Page(Web.Contents(urlReport,[ Headers =[ #"Accept" = "application/html"]]))
    in
        sourceReport
    in executeReport;

I'm using Visual Studio 2015, and the last version of the Power Query SDK (1.0.0.13),

 

Any idea of why I'm getting this error?

 

Regards


Viewing all articles
Browse latest Browse all 17928

Trending Articles



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