我正在构建自定义数据连接器,在这种情况下,我可以将URL作为参数。因此,基本上,如果用户从市场上找到我们的连接器,第一步将是输入以下域名
这是我的M语言代码:
DataSource.Kind="TConnectorPOC", Publish="TConnectorPOC.Publish"]
shared TConnectorPOC.Contents = (optional message as text) =>
let
source=Json.Document(Web.Contents(basicURL & endpoint )),
#"Converted to Table" = Table.FromList(source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"projectId", "parentQuoteId", "projectGroupId","projectGroupCode", "projectGroupName", "code", "name", "description", "status", "customerId","customerContactId", "templateId"})
in
#"Expanded Column1";
基本上,如果我的basicURL打开连接器,则应该提示第一张图片。我确实很难实现这一目标。请帮助。谢谢