<?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 in dataflowgen2 in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3564050#M1302</link>
    <description>&lt;UL&gt;&lt;LI&gt;Thank you Anonymous&lt;/LI-USER&gt;&amp;nbsp;for the detail explanation on how to use fabric data factory. I am looking to implement the same in the dataflowgen2 also. The bearer token will never change in my case. I believe dataflowgen2 is also perfect choice. The only roadblock I have in dataflowgen2 is how to pass bearertoken.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Sat, 02 Dec 2023 07:23:55 GMT</pubDate>
    <dc:creator>Dinesh09</dc:creator>
    <dc:date>2023-12-02T07:23:55Z</dc:date>
    <item>
      <title>API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3563464#M1291</link>
      <description>&lt;P&gt;How to access api data using bearer token in header. In power BI Desktop web connector is available but not in dataflowgen2. Web API connector is available in dataflowgen2 but there is no option in GUI to add headers. Headers is used to enter bearer token. I am not much interested in pasting code advanced editor from power bi desktop as there are bunch of APIs calls I need to made.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3563464#M1291</guid>
      <dc:creator>Dinesh09</dc:creator>
      <dc:date>2023-12-01T16:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3563553#M1295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605313" data-lia-user-login="Dinesh09" class="lia-mention lia-mention-user"&gt;Dinesh09&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per my understanding you want to create Rest API Pipeline in Fabric Data Factory.&lt;BR /&gt;&lt;BR /&gt;I assume you might&amp;nbsp;have 2 APIs, API_1 will get a bearer token and other API_2 will get result(final data) on passing bearer token along with header.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Lets assume API_1 requires client_id and client_secret to get bearer token:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1: Connection - Add your base URL here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2: Relative URL - Add your relative URL here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 3: Body&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(Main point) -&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;Can add your client_id and client_secret here in json format&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{

    "grant_type":"client_credentials",

    "client_id":"abcdefg",

    "client_secret":"123ghy456"

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Step 4: Header: Add&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Content-Type :&amp;nbsp;application/json&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets assume API_2 requires bearer token to get result (final data):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Step 5: Create a New Copy Activity.&lt;BR /&gt;Step 6:&amp;nbsp; Link a Copy Activity to this Web Activity.&lt;BR /&gt;Step 7: Creation a Rest API connection with the base URL.&lt;BR /&gt;Step 8: Configure connection type and base url (API_2)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Step 9:&amp;nbsp;&lt;STRONG&gt;!Important&amp;nbsp;&lt;/STRONG&gt;Configure your header with&amp;nbsp;&lt;STRONG&gt;Authorization: Bearer &amp;lt;token&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Step 10:&amp;nbsp;&lt;STRONG&gt;!Important&amp;nbsp;&lt;/STRONG&gt;(inorder to pass token dynamic way, not manually)&lt;BR /&gt;Configure value with&amp;nbsp;&lt;EM&gt;add dynamic content&amp;nbsp;&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Bearer @{activity('User_Login_Token').output.&lt;/STRONG&gt;data.Token&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;.data.Token is as per my json output, you can write your expression based on your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;json output from API_1&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please let us know incase of any queries.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Dec 2023 17:53:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3563553#M1295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-01T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3564050#M1302</link>
      <description>&lt;UL&gt;&lt;LI&gt;Thank you Anonymous&lt;/a&gt;&amp;nbsp;for the detail explanation on how to use fabric data factory. I am looking to implement the same in the dataflowgen2 also. The bearer token will never change in my case. I believe dataflowgen2 is also perfect choice. The only roadblock I have in dataflowgen2 is how to pass bearertoken.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 02 Dec 2023 07:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3564050#M1302</guid>
      <dc:creator>Dinesh09</dc:creator>
      <dc:date>2023-12-02T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566412#M1310</link>
      <description>&lt;P&gt;We are working on enabling custom connectors in Dataflow Gen2. Creating a custom connector would be the recommended way to securely store the token and use it for the calls needed to the API. We don't have an ETA that we can share at the moment on when it'll be available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it is technically possible to create your own custom M code to pass the bearer token as clear text and as part of your M code. We do not recommend as the token will not be secure and will simply be part of your M code, but it is technically possible to do this. A sample code is provided below:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;let
  Source = Json.Document(Web.Contents("https://api.XXX.com/", [RelativePath="v1/mycall", Headers=[#"Authorization"="Bearer XXXtokenXXX"]]))
in
  Source&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Dec 2023 15:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566412#M1310</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2023-12-04T15:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566455#M1312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605313" data-lia-user-login="Dinesh09" class="lia-mention lia-mention-user"&gt;Dinesh09&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know you query got resolved. Please continue using Fabric Community for your further queries.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 15:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566455#M1312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-04T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: API in dataflowgen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566586#M1315</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the M code. In the datapipeline, could you please take me through the mapping part also with screenshots.please take some complex nested json script. In my case collection reference option is not appearing. I choose lakehouse file with parquet format as destination. For some reasons I am not sharing json output of api here.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:13:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/API-in-dataflowgen2/m-p/3566586#M1315</guid>
      <dc:creator>Dinesh09</dc:creator>
      <dc:date>2023-12-04T16:13:27Z</dc:date>
    </item>
  </channel>
</rss>

