<?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: API Request (Web Action) Relative Path Not Working in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/API-Request-Web-Action-Relative-Path-Not-Working/m-p/4588126#M7181</link>
    <description>&lt;P&gt;Please follow the documentation. Use RelativePath &lt;STRONG&gt;and Query&lt;/STRONG&gt; parameters.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1" target="_blank"&gt;https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 14:05:42 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-02-27T14:05:42Z</dc:date>
    <item>
      <title>API Request (Web Action) Relative Path Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/API-Request-Web-Action-Relative-Path-Not-Working/m-p/4587933#M7180</link>
      <description>&lt;P&gt;I have an API GET request working in Postman for testing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[base url]/envelopes?count=750&amp;amp;from_date=2024-10-01&amp;amp;order_by=last_modified&amp;amp;include=recipients&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I set up a web request in Data Factory to do the same thing, I get an error message response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"errorCode":"INVALID_REQUEST_PARAMETER","message":"The request contained at least one invalid parameter. Invalid value for query string parameter 'from_date'"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking at the activity inputs though there doesn't seem to be anything wrong:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "method": "GET", "headers": { "Authorization": "Bearer blahh" }, "httpRequestTimeout": "00:10:00", "relativeUrl": "envelopes?count=750&amp;amp;from_date=2024-10-01&amp;amp;order_by=last_modified&amp;amp;include=recipients" } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried a few things like alternative date formatting and URL encoding but to no success. I can't really see what's going wrong here unless data factory is doing something to the relativeUrl after this. Any ideas? I believe this was working some time before christmas, I don't know if any changes to the platform have been made since.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Some further testing. I have another query which grabs user data which succeeds. However if I add in the relative path &amp;amp;additional_info=true, then the action fails. There must be some issue with handling this relative path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EDIT2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I remove the relative path and include it in the full connection then it works as a work around. However this isn't acceptable as a solution as I need to be able to parametrise these optional items.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 13:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/API-Request-Web-Action-Relative-Path-Not-Working/m-p/4587933#M7180</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2025-02-27T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Request (Web Action) Relative Path Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/API-Request-Web-Action-Relative-Path-Not-Working/m-p/4588126#M7181</link>
      <description>&lt;P&gt;Please follow the documentation. Use RelativePath &lt;STRONG&gt;and Query&lt;/STRONG&gt; parameters.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1" target="_blank"&gt;https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 14:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/API-Request-Web-Action-Relative-Path-Not-Working/m-p/4588126#M7181</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-27T14:05:42Z</dc:date>
    </item>
  </channel>
</rss>

