<?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: How can I call api with post method in Power BI? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2091117#M31954</link>
    <description>&lt;P&gt;Any updates?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 10:45:51 GMT</pubDate>
    <dc:creator>LeonLiang</dc:creator>
    <dc:date>2021-09-22T10:45:51Z</dc:date>
    <item>
      <title>How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2010256#M31044</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose I have an api, &lt;A href="https://testurl.com/api/getOrderList," target="_blank" rel="noopener"&gt;https://testurl.com/api/getOrderList,&lt;/A&gt;&amp;nbsp;how can I use it with &lt;STRONG&gt;post method&lt;/STRONG&gt; and my basic auth information in Power BI to get my order list data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:20:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2010256#M31044</guid>
      <dc:creator>LeonLiang</dc:creator>
      <dc:date>2021-08-11T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2014136#M31087</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120678" data-lia-user-login="LeonLiang" class="lia-mention lia-mention-user"&gt;LeonLiang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to make a POST request to a web service&amp;nbsp;through Power Query, you have to add the relevant data in the “Content”-parameter of the query&amp;nbsp;. Please refer to:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://blog.crossjoin.co.uk/2014/04/19/web-services-and-post-requests-in-power-query/" target="_self"&gt;web-services-and-post-requests-in-power-query&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 02:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2014136#M31087</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-08-13T02:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2023401#M31201</link>
      <description>&lt;P&gt;Hi Liang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't vote this as a solution. How come it became a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to format my request as following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let&lt;BR /&gt;&amp;nbsp; &amp;nbsp; start_date = Number.From(Date.From("01-01-2021")),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // or&amp;nbsp; start_date = "01-01-2021"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // or&amp;nbsp;start_date = "2021-01-01"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PostContents = start_date,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Source = Json.Document(Web.Contents("&lt;A href="https://testurl.com/api/getOrderList," target="_blank" rel="noopener nofollow noreferrer"&gt;https://testurl.com/api/getOrderList&lt;/A&gt;"),&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Content=Text.ToBinary(PostContents)])&lt;BR /&gt;in&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It tells me the following error&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2023401#M31201</guid>
      <dc:creator>LeonLiang</dc:creator>
      <dc:date>2021-08-18T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2024916#M31212</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120678" data-lia-user-login="LeonLiang" class="lia-mention lia-mention-user"&gt;LeonLiang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, &lt;SPAN&gt;&amp;nbsp;start_date&amp;nbsp;&lt;/SPAN&gt;is a number. You need to convert it into text to see if it works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:01:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2024916#M31212</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-08-19T05:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2050856#M31474</link>
      <description>&lt;P&gt;Hi Liang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried bunch of convert methods whereas they all failed. Do you have a straight forward solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 08:36:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2050856#M31474</guid>
      <dc:creator>LeonLiang</dc:creator>
      <dc:date>2021-09-01T08:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I call api with post method in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2091117#M31954</link>
      <description>&lt;P&gt;Any updates?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 10:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-call-api-with-post-method-in-Power-BI/m-p/2091117#M31954</guid>
      <dc:creator>LeonLiang</dc:creator>
      <dc:date>2021-09-22T10:45:51Z</dc:date>
    </item>
  </channel>
</rss>

