<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Use an API Call to Populate Custom Data Connector Settings in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Use-an-API-Call-to-Populate-Custom-Data-Connector-Settings/m-p/695224#M19448</link>
    <description>&lt;P&gt;I've created a custom connector I've imported into Power BI Desktop. I'm using it to pull in a very large data set, which is too big to pull in completely in a single request. So I want to allow a user to select a certain subset of the data in the connection info&amp;nbsp;(DataSource.Contents) screen. To do this I have a few dropdown menus that allows them to select a subset. These dropdowns are pretty dynamic. Right now if I hardcode my dropdown list in a function and return it in a function it works:&lt;/P&gt;&lt;PRE&gt;dropdownList = {
[id=""123, "name="example dropdown"],
[id=""124, "name="another example dropdown"]
}&lt;/PRE&gt;&lt;P&gt;But I want that function call to return the result of an API call to dynamically load this list. I am using the following code which I know works during the actual data retrieval for the custom connector:&lt;/P&gt;&lt;PRE&gt;content = Web.Contents("https://my-api.com/unprotected/endpoint/returning-json", 
            [
                Headers=[
                    #"Method"="GET",
                    #"Content-Type" = "application/json"
                ]
            ]
        )&lt;/PRE&gt;&lt;P&gt;This code works when I make it run in the Contents section of my DataSource. Is it possible to get this to run during the data connection settings screen? Is there some async/await type keyword I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if not, does anyone know of another way to allow a user to define the parameters of the content they need so I can make an API call for the data on a large dataset that will not time out?&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 22:23:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-20T22:23:57Z</dc:date>
    <item>
      <title>Use an API Call to Populate Custom Data Connector Settings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-an-API-Call-to-Populate-Custom-Data-Connector-Settings/m-p/695224#M19448</link>
      <description>&lt;P&gt;I've created a custom connector I've imported into Power BI Desktop. I'm using it to pull in a very large data set, which is too big to pull in completely in a single request. So I want to allow a user to select a certain subset of the data in the connection info&amp;nbsp;(DataSource.Contents) screen. To do this I have a few dropdown menus that allows them to select a subset. These dropdowns are pretty dynamic. Right now if I hardcode my dropdown list in a function and return it in a function it works:&lt;/P&gt;&lt;PRE&gt;dropdownList = {
[id=""123, "name="example dropdown"],
[id=""124, "name="another example dropdown"]
}&lt;/PRE&gt;&lt;P&gt;But I want that function call to return the result of an API call to dynamically load this list. I am using the following code which I know works during the actual data retrieval for the custom connector:&lt;/P&gt;&lt;PRE&gt;content = Web.Contents("https://my-api.com/unprotected/endpoint/returning-json", 
            [
                Headers=[
                    #"Method"="GET",
                    #"Content-Type" = "application/json"
                ]
            ]
        )&lt;/PRE&gt;&lt;P&gt;This code works when I make it run in the Contents section of my DataSource. Is it possible to get this to run during the data connection settings screen? Is there some async/await type keyword I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if not, does anyone know of another way to allow a user to define the parameters of the content they need so I can make an API call for the data on a large dataset that will not time out?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 22:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-an-API-Call-to-Populate-Custom-Data-Connector-Settings/m-p/695224#M19448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-20T22:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use an API Call to Populate Custom Data Connector Settings</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-an-API-Call-to-Populate-Custom-Data-Connector-Settings/m-p/791939#M20756</link>
      <description>&lt;P&gt;Did you find a way to do this? Also trying...&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-an-API-Call-to-Populate-Custom-Data-Connector-Settings/m-p/791939#M20756</guid>
      <dc:creator>diogorod</dc:creator>
      <dc:date>2019-09-13T14:46:41Z</dc:date>
    </item>
  </channel>
</rss>

