<?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: Passing a bearer token to copy data action using GET in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3893034#M3076</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Yes just sharing knowledge, since it wasn't so straightforward to find as I thought it would be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
    <pubDate>Sun, 05 May 2024 20:35:17 GMT</pubDate>
    <dc:creator>smeetsh</dc:creator>
    <dc:date>2024-05-05T20:35:17Z</dc:date>
    <item>
      <title>Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3887396#M3055</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not a question, but something I ran into, as I am just picking up MS Fabric, pipelines etc.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I needed to use web request, to get an access token that is valid for 30 minutes. Next I needed to use that token as a bearer token to do a follow up API call to get actual data , there didn't seem to be that much info around, when I tried to google it. Eventually I found a you tube video, that told me what i needed to know. (linked below). Things like apikeys and other credentials will of course vary on the API yo are trying to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my flow.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 1&amp;nbsp;&lt;BR /&gt;Do your web request&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2 link the Web and copy data action&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3&amp;nbsp;In the copy data action&amp;nbsp; set it up as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see the value of the Authorization header is dynamic, with in my case, the following expression:&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Bearer @{activity('Get access token').output.access_token}&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The part "&lt;STRONG&gt;.access_token&lt;/STRONG&gt;" depends on the json you get returned, in my case it was a very flat structure with no above array.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"token_type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"BearerToken"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"issued_at"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxx"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"salesforce_id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxx"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;FONT color="#FF0000"&gt;access_token&lt;/FONT&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxx"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"application_name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxx"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"scope"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"refresh_token full"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"expires_in"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"xxx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Above you can see where i got the parameter &lt;FONT color="#FF0000"&gt;access_token&lt;/FONT&gt; from. If this array had been nested in for instance another array called&amp;nbsp; "data" then the value would have been &lt;STRONG&gt;data.access_token &lt;/STRONG&gt;in stead of just &lt;STRONG&gt;access_token.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I hope this is usefull info to share here. The video I got this from you can find&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=FYj5NZjSU-w" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 23:54:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3887396#M3055</guid>
      <dc:creator>smeetsh</dc:creator>
      <dc:date>2024-05-02T23:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3887657#M3056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718450" data-lia-user-login="smeetsh" class="lia-mention lia-mention-user"&gt;smeetsh&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&amp;nbsp;&lt;BR /&gt;Can you please confirm whether this is a question or just sharing the knowledge across the Community?&lt;BR /&gt;As I understand you are just&amp;nbsp;sharing the knowledge across the Community.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 03:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3887657#M3056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-03T03:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3893034#M3076</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Yes just sharing knowledge, since it wasn't so straightforward to find as I thought it would be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 20:35:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/3893034#M3076</guid>
      <dc:creator>smeetsh</dc:creator>
      <dc:date>2024-05-05T20:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/4350837#M6781</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 07:16:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/4350837#M6781</guid>
      <dc:creator>0simmis0</dc:creator>
      <dc:date>2025-01-05T07:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/5363124#M9651</link>
      <description>&lt;P&gt;You should not put a token in directly, instead use @concat('Bearer ', activity('Get Auth Token').output.access_token)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2026 14:56:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/5363124#M9651</guid>
      <dc:creator>Krupps</dc:creator>
      <dc:date>2026-08-28T14:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a bearer token to copy data action using GET</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/5363481#M9653</link>
      <description>&lt;P&gt;Which is exactly what id did&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2026 21:12:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Passing-a-bearer-token-to-copy-data-action-using-GET/m-p/5363481#M9653</guid>
      <dc:creator>smeetsh</dc:creator>
      <dc:date>2026-08-30T21:12:44Z</dc:date>
    </item>
  </channel>
</rss>

