<?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: Power BI Visual calling into REST APIs (POST method) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Visual-calling-into-REST-APIs-POST-method/m-p/933629#M22321</link>
    <description>&lt;P&gt;&lt;EM&gt;Try to use standard&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFetch_API&amp;amp;data=02%7C01%7CSafal.Kishore%40microsoft.com%7Cc825608ca6364f2c5c2c08d7aa4c5675%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637165117163239167&amp;amp;sdata=kE7UcvbDRpZpN0kD%2FwClKAgSQCO1SUAeSaI5scQOvr4%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 17:42:42 GMT</pubDate>
    <dc:creator>safalkishore</dc:creator>
    <dc:date>2020-02-14T17:42:42Z</dc:date>
    <item>
      <title>Power BI Visual calling into REST APIs (POST method)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Visual-calling-into-REST-APIs-POST-method/m-p/920358#M22198</link>
      <description>&lt;P&gt;I am developing a sample power bi visual after following the article -&amp;nbsp;&lt;A title="" href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://docs.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the 'request' npm package on the 'visuals.ts' on the constructor and then call into a custom API like the sample code shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;request('&lt;A title="" href="http://www.microsoft.com%27%2C%20function%20%28error%2C%20response%2C%20body%29%20/" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://www.microsoft.com',&amp;nbsp;function&amp;nbsp;(error,&amp;nbsp;response,&amp;nbsp;body)&amp;nbsp;&lt;/A&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;console.log('error:',&amp;nbsp;error);&amp;nbsp;//&amp;nbsp;Print&amp;nbsp;the&amp;nbsp;error&amp;nbsp;if&amp;nbsp;one&amp;nbsp;occurred&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;console.log('statusCode:',&amp;nbsp;response&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;response.statusCode);&amp;nbsp;//&amp;nbsp;Print&amp;nbsp;the&amp;nbsp;response&amp;nbsp;status&amp;nbsp;code&amp;nbsp;if&amp;nbsp;a&amp;nbsp;response&amp;nbsp;was&amp;nbsp;received&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;console.log('body:',&amp;nbsp;body);&amp;nbsp;//&amp;nbsp;Print&amp;nbsp;the&amp;nbsp;HTML&amp;nbsp;for&amp;nbsp;the&amp;nbsp;Google&amp;nbsp;homepage.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I encounter an error on the 'pbiviz start' phase while trying the above - &lt;EM&gt;&lt;STRONG&gt;Can't resolve 'fs'&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hence trying to check if this is allowed and how I could go about looking up the build error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Feb 2020 22:50:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Visual-calling-into-REST-APIs-POST-method/m-p/920358#M22198</guid>
      <dc:creator>safalkishore</dc:creator>
      <dc:date>2020-02-03T22:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Visual calling into REST APIs (POST method)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Visual-calling-into-REST-APIs-POST-method/m-p/933629#M22321</link>
      <description>&lt;P&gt;&lt;EM&gt;Try to use standard&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFetch_API&amp;amp;data=02%7C01%7CSafal.Kishore%40microsoft.com%7Cc825608ca6364f2c5c2c08d7aa4c5675%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637165117163239167&amp;amp;sdata=kE7UcvbDRpZpN0kD%2FwClKAgSQCO1SUAeSaI5scQOvr4%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:42:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Visual-calling-into-REST-APIs-POST-method/m-p/933629#M22321</guid>
      <dc:creator>safalkishore</dc:creator>
      <dc:date>2020-02-14T17:42:42Z</dc:date>
    </item>
  </channel>
</rss>

