<?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: Working Examples of WebAction.Request in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266488#M25033</link>
    <description>&lt;P&gt;Yeah its not that I can't use web.contents. Its that the nature of web.contents hides the response headers from Value.Metadata. I'm hoping/praying WebAction.Request won't have the same restrictions.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 18:14:03 GMT</pubDate>
    <dc:creator>rtaylor</dc:creator>
    <dc:date>2020-08-01T18:14:03Z</dc:date>
    <item>
      <title>Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265529#M25019</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for any working examples of using WebAction.Request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, does anyone know the syntax of an action type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 18:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265529#M25019</guid>
      <dc:creator>rtaylor</dc:creator>
      <dc:date>2020-07-31T18:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265756#M25024</link>
      <description>&lt;P&gt;See this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Issues/WebAction-Request-Method-throwing-Object-reference-not-set-to/idi-p/508010" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Issues/WebAction-Request-Method-throwing-Object-reference-not-set-to/idi-p/508010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax would be (for example)&lt;/P&gt;&lt;P&gt;web2 = WebAction.Request(WebMethod.Post,URL,[Content = data, Headers = headers, ManualStatusHandling = {404, 400}]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any particular reason you need to use this versus Web.Contents ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 21:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265756#M25024</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-31T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265874#M25026</link>
      <description>&lt;P&gt;Thanks for the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that syntax brings up a credential error when executed. The credential request option pops up over and over again.&lt;/P&gt;&lt;P&gt;Even something as simple as WebAction.Request(WebMethod.Get,"&lt;A href="https://www.sdsu.edu/&amp;quot;,[ManualStatusHandling" target="_blank"&gt;https://www.sdsu.edu/",[ManualStatusHandling&lt;/A&gt; = {404, 400}]) causes the same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Any particular reason you need to use this versus Web.Contents ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two reasons.&lt;/P&gt;&lt;P&gt;1. I'm hoping that Value. Metadata with WebAction.Request will show all the the response headers where Web.Contents shows null&lt;/P&gt;&lt;P&gt;2. If that doesn't work, may be WebMethod.Put will allow me to pass the headers to another request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any experience with using "Actions"?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 23:56:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265874#M25026</guid>
      <dc:creator>rtaylor</dc:creator>
      <dc:date>2020-07-31T23:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265882#M25027</link>
      <description>&lt;P&gt;I get the same error as in the thread I linked to.&amp;nbsp; For now I am ok with just using Web.Contents even if it is sometimes a bit weird.&amp;nbsp; Here is an example of a call against Microsoft's own REST API that requires some creative result wrangling because they don't adhere to simple HTTP standards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;(GatewayId as text, ConnectionId as text) =&amp;gt;
    let
       JsonData = try Json.Document(Web.Contents("https://api.powerbi.com/v1.0/myorg/gateways/" &amp;amp; GatewayId &amp;amp; "/datasources/" &amp;amp; ConnectionId &amp;amp; "/status", [Headers=[Authorization=Authorization]])),
       value = if JsonData[Error][Message]="We reached the end of the buffer." then "True" else "False"
    in
        value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A "gateway connection is good"&amp;nbsp; 200 response is hampered by an empty return body that I have to mitigate separately.&amp;nbsp; Maybe you can do something similar with your web request.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 00:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1265882#M25027</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-08-01T00:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266488#M25033</link>
      <description>&lt;P&gt;Yeah its not that I can't use web.contents. Its that the nature of web.contents hides the response headers from Value.Metadata. I'm hoping/praying WebAction.Request won't have the same restrictions.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 18:14:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266488#M25033</guid>
      <dc:creator>rtaylor</dc:creator>
      <dc:date>2020-08-01T18:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266504#M25034</link>
      <description>&lt;P&gt;If you are a pro license holder you can raise a ticket with Microsoft.&amp;nbsp; This API call seems to be broken since a long time already.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 19:47:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266504#M25034</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-08-01T19:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Working Examples of WebAction.Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266514#M25035</link>
      <description>&lt;P&gt;Yeah, I can't raise a ticket because my company won't approve the purchase at this time. I'm thinking of just paying $10 and getting a few tickets answered and resolved.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 20:08:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Working-Examples-of-WebAction-Request/m-p/1266514#M25035</guid>
      <dc:creator>rtaylor</dc:creator>
      <dc:date>2020-08-01T20:08:07Z</dc:date>
    </item>
  </channel>
</rss>

