<?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: Get data from REST API source with iterated nested API calls (with Data Pipelines) in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3362248#M477</link>
    <description>&lt;P&gt;Try&amp;nbsp;&lt;SPAN&gt;@activity('Web1').output.value&lt;BR /&gt;Then, in your nested activities, you can have a parameter referencing customer id and other fields with this pipeline expression : @item().customerid&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 18:30:18 GMT</pubDate>
    <dc:creator>Gregory_Pinard</dc:creator>
    <dc:date>2023-08-02T18:30:18Z</dc:date>
    <item>
      <title>Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3343333#M456</link>
      <description>&lt;P&gt;I have a working Dataflow that does the following:&lt;/P&gt;&lt;P&gt;1. Pulls a Customers list from an API call (&lt;SPAN&gt;&lt;A href="https://api.somecrm.com/v1/" target="_blank" rel="noopener"&gt;https://api.somecrm.com/v1/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;customers&lt;/SPAN&gt;).&lt;BR /&gt;2. For EACH Customer it calls another API to get his/hers purchase history&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="https://api.somecrm.com/v1/purchasehist/{customerid" target="_blank" rel="noopener"&gt;https://api.somecrm.com/v1/purchasehist/{customerid&lt;/A&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. I have 3 other nested queries, but I'll skip them for simplicity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to build the same solution in the new &lt;STRONG&gt;Pipelines&lt;/STRONG&gt; in the Fabric. Two reasons for this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Although the Dataflows works fine, it sometimes gets: "429&amp;nbsp;Too Many Requests error", so I feel that Pipelines will give me more control, such as "Wait" step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. I would like to save some outputs as JSON files in a Lakehouse, not just tables.&lt;BR /&gt;I am new to this environment so I'd like to learn how can I implement this scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've seen several documentations and videos, but I am looking for the this specific scenario - several API calls with an iteration...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to build but got stuck in the ForEach activity with a syntax - how do I tell it how to get a specific customerID...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 12:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3343333#M456</guid>
      <dc:creator>iBusinessBI</dc:creator>
      <dc:date>2023-07-21T12:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3356923#M464</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366865" data-lia-user-login="iBusinessBI" class="lia-mention lia-mention-user"&gt;iBusinessBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please elaborate&amp;nbsp;&lt;BR /&gt;"&lt;SPAN&gt;I tried to build but got stuck in the ForEach activity with a syntax - how do I tell it how to get a specific customerID.&lt;/SPAN&gt;"?&lt;BR /&gt;I am confused as&amp;nbsp; the FOREACH will iterate all the CustimerID and not any specific one .&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;Himanshu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 18:11:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3356923#M464</guid>
      <dc:creator>HimanshuS-msft</dc:creator>
      <dc:date>2023-07-30T18:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3357495#M468</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="538677" data-lia-user-login="HimanshuS-msft" class="lia-mention lia-mention-user"&gt;HimanshuS-msft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sure.&lt;/P&gt;&lt;P&gt;Here is my screenshot.&lt;/P&gt;&lt;P&gt;The Web1 activity calls an API that returns JSON with many customers including id and other fields.&lt;/P&gt;&lt;P&gt;For every customerid I need to make another API call.&lt;/P&gt;&lt;P&gt;What do I write in "Items"?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 08:33:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3357495#M468</guid>
      <dc:creator>iBusinessBI</dc:creator>
      <dc:date>2023-07-31T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3358529#M472</link>
      <description>&lt;P&gt;You should specify the json property name (or path if its nested under a different top level property), which yields the collection of customers.&lt;/P&gt;&lt;P&gt;In general, one good way to debug is by providing a dummy property, and at runtime the failure message will indicate to some extent what properties were available to choose from.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 19:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3358529#M472</guid>
      <dc:creator>ajarora</dc:creator>
      <dc:date>2023-07-31T19:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3358552#M473</link>
      <description>&lt;P&gt;Exactly my question.&lt;/P&gt;&lt;P&gt;What is the exact syntax for specifying the json path+property (it is nested).&lt;/P&gt;&lt;P&gt;I've googled but couldn't find samples.&lt;/P&gt;&lt;P&gt;Also, sholud I use Web activity for the first call? I saw people use Lookup activity, too.&lt;/P&gt;&lt;P&gt;Which one is the correct?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 19:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3358552#M473</guid>
      <dc:creator>iBusinessBI</dc:creator>
      <dc:date>2023-07-31T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3362248#M477</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;SPAN&gt;@activity('Web1').output.value&lt;BR /&gt;Then, in your nested activities, you can have a parameter referencing customer id and other fields with this pipeline expression : @item().customerid&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 18:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3362248#M477</guid>
      <dc:creator>Gregory_Pinard</dc:creator>
      <dc:date>2023-08-02T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3470317#M781</link>
      <description>&lt;P&gt;Is it possible to use the&amp;nbsp;@item() properties in mapping? I tried directly use the iteration variable, but I got an error about typing. The UI does not allow manually setting type, so next I tried to create dynamic mapping and define the type there, but then I got an error about invalid JSON (even though JSON is valid).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"source": {&lt;BR /&gt;"path": "@item().id"&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"JsonException,Message=Array index expected."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 05:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3470317#M781</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2023-10-11T05:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3505360#M915</link>
      <description>&lt;P&gt;Please vote for this idea to make pulling data from API sources easier:&lt;BR /&gt;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=2bc79710-f776-ee11-a81c-000d3adc66b1" target="_blank"&gt;https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=2bc79710-f776-ee11-a81c-000d3adc66b1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 18:35:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3505360#M915</guid>
      <dc:creator>iBusinessBI</dc:creator>
      <dc:date>2023-10-30T18:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from REST API source with iterated nested API calls (with Data Pipelines)</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3787059#M2226</link>
      <description>&lt;OL&gt;&lt;LI&gt;First, you need to set up a &lt;STRONG&gt;WEB Activity that pulls the customer list by calling the API/customers.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Once you have the customer list, you have to set up a &lt;STRONG&gt;ForEach Activity.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;In ForEach Activity, go to &lt;STRONG&gt;&lt;STRONG&gt;Settings -&amp;gt; Items -&amp;gt; Add Dynamic Content.&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="432630" data-lia-user-login="Array" class="lia-mention lia-mention-user"&gt;Array&lt;/a&gt;(activity([NAMEOFWEBACTIVITY]).output.data)&lt;/LI&gt;&lt;LI&gt;Here, you need to access the data from JSON. ​&lt;/LI&gt;&lt;LI&gt;Now, add a copy activity inside the ForEach Activity in order to save the JSON files into the lakehouse directly.&lt;/LI&gt;&lt;LI&gt;To access the JSON objects via "customerId" go to the&lt;STRONG&gt; CopyActivity inside &lt;STRONG&gt;ForEach Activity.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Source -&amp;gt; Add the connection here.&lt;/LI&gt;&lt;LI&gt;In &lt;STRONG&gt;&lt;STRONG&gt;Realtive URL -&amp;gt; Add dynamic content&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;@concat('purchaselist/',item().customerId)​&lt;/LI&gt;&lt;LI&gt;Set up the destination where you want to save the JSON objects as JSON files and run the pipeline.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 22 Mar 2024 22:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-data-from-REST-API-source-with-iterated-nested-API-calls/m-p/3787059#M2226</guid>
      <dc:creator>Ayybee</dc:creator>
      <dc:date>2024-03-22T22:02:21Z</dc:date>
    </item>
  </channel>
</rss>

