<?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 Re: Dynamic API request to get data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551590#M36447</link>
    <description>&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/&lt;/A&gt;&amp;nbsp;&amp;nbsp; ... this link provides some hint, but I think the pre-condition is that the data is already populated with different countries in the first place, else there is no way to retrieve the data on-the-fly.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 01:58:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-01T01:58:00Z</dc:date>
    <item>
      <title>Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/380747#M11306</link>
      <description>&lt;P&gt;Hi the community&lt;/P&gt;&lt;P&gt;My title is not really self explanatory... so let me try to be clear enough here to get an answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Campaign Monitor (CM) to send email marketing.&lt;/P&gt;&lt;P&gt;Without going into details, I usualy create a dedicated list for one campaign.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;CM-List1&lt;/FONT&gt;, &lt;FONT color="#FF0000"&gt;CM-Lists2&lt;/FONT&gt;, &lt;FONT color="#FF0000"&gt;CM-list3&lt;/FONT&gt; and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In PowerBI (PBI),&amp;nbsp;I successfully get data from CM using the CM API.&lt;/P&gt;&lt;P&gt;The API request looks like that:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;A href="https://api.createsend.com/api/v3.1/lists/" target="_blank"&gt;https://api.createsend.com/api/v3.1/lists/&lt;/A&gt;&lt;EM&gt;xxxxxxxxxx&lt;/EM&gt;/active.xml&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Where the&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;xxxxxxxxxx&lt;/EM&gt;&amp;nbsp;&lt;/FONT&gt;= le List ID provided by CM.&lt;/P&gt;&lt;P&gt;The Query starts by this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;let&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; Source = Xml.Tables(Web.Contents("&lt;A href="https://api.createsend.com/api/v3.1/lists/" target="_blank"&gt;https://api.createsend.com/api/v3.1/lists/&lt;/A&gt;&lt;EM&gt;xxxxxxxxxx&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/active.xml")),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; #"Changed Type... etc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now, here is my question:&lt;/P&gt;&lt;P&gt;In PBI, have a table. In this table, i've a title column&amp;nbsp;listing the list I've in CM. In the last column, i've the ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI1.jpg" style="width: 755px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/87380iF8DD9EF51A32816C/image-dimensions/755x107?v=v2" width="755" height="107" role="button" title="PBI1.jpg" alt="PBI1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have dynamically use the CM API to get generate or modify a query based a selected row from this above table using list ID (at the end of the table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure it should be done in the query editor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Dashboard, basically, i would like to have the 4 Title, i select one and then, i get a table filled with the Data pulled from the corresponding list from CM (using the API)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tricky question isn't it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:33:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/380747#M11306</guid>
      <dc:creator>PascalT</dc:creator>
      <dc:date>2018-03-21T11:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/383162#M11373</link>
      <description>&lt;P&gt;I think you should be able to do this by setting a Query paramter for the List ID part in the URL.&lt;/P&gt;&lt;P&gt;Take a look at the Query paramter:&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 02:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/383162#M11373</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-03-25T02:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/411943#M12278</link>
      <description>&lt;P&gt;Hi and thank you. I gave a try to this but in fact it doesn't&amp;nbsp;fulfil my needs &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really like to have a bunch of query, based on the same model. These queries are built based on a list coming from SharePoint Online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SharePoint Online list have several URL to call APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In PowerBI, i want to have as many query as I've records in my SPO list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i think it's maybe too demanding for PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you hepl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/411943#M12278</guid>
      <dc:creator>PascalT</dc:creator>
      <dc:date>2018-05-07T13:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551580#M36446</link>
      <description>&lt;P&gt;yes, I have that similar needs..but I think in Power BI, it seems not possible... or if some M-code can help, I am not sure. Finally, I resort to my way of doing the scripting in R, which can produce the UI easily with the Shiny library.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 01:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551580#M36446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T01:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551590#M36447</link>
      <description>&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/&lt;/A&gt;&amp;nbsp;&amp;nbsp; ... this link provides some hint, but I think the pre-condition is that the data is already populated with different countries in the first place, else there is no way to retrieve the data on-the-fly.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 01:58:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551590#M36447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T01:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic API request to get data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551598#M36448</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/How-to-make-dynamic-rest-api-data-source-in-Power-bi/td-p/1213037" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/How-to-make-dynamic-rest-api-data-source-in-Power-bi/td-p/1213037&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I do not see any solution in the above link too..&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 02:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-API-request-to-get-data/m-p/2551598#M36448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T02:01:40Z</dc:date>
    </item>
  </channel>
</rss>

