<?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 Load list of table name in pipeline with foreach in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4589859#M7182</link>
    <description>&lt;P&gt;Newbie here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to establish an action that I couldn't find a way or answer.&lt;/P&gt;&lt;P&gt;The purpose is to load a list of specific table names from one source of data.&lt;/P&gt;&lt;P&gt;This list is&amp;nbsp;subject to change (new/modify/delete values).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, list of tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table1&lt;/LI&gt;&lt;LI&gt;Table3&lt;/LI&gt;&lt;LI&gt;Table7&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Théo&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2025 10:56:29 GMT</pubDate>
    <dc:creator>Theo_MS</dc:creator>
    <dc:date>2025-02-28T10:56:29Z</dc:date>
    <item>
      <title>Load list of table name in pipeline with foreach</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4589859#M7182</link>
      <description>&lt;P&gt;Newbie here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to establish an action that I couldn't find a way or answer.&lt;/P&gt;&lt;P&gt;The purpose is to load a list of specific table names from one source of data.&lt;/P&gt;&lt;P&gt;This list is&amp;nbsp;subject to change (new/modify/delete values).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, list of tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table1&lt;/LI&gt;&lt;LI&gt;Table3&lt;/LI&gt;&lt;LI&gt;Table7&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Théo&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 10:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4589859#M7182</guid>
      <dc:creator>Theo_MS</dc:creator>
      <dc:date>2025-02-28T10:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load list of table name in pipeline with foreach</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4590018#M7185</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="899521" data-lia-user-login="Theo_MS" class="lia-mention lia-mention-user"&gt;Theo_MS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To dynamically load a list of tables in Microsoft Fabric pipelines with changing table names, use a metadata-driven approach with Lookup and ForEach activities&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;Retrieve Table Names with a Lookup Activity&lt;/P&gt;&lt;P&gt;Use a query or stored procedure to fetch the latest table list from your source system:&lt;/P&gt;&lt;P&gt;Store your table names in a configuration table for easier updates&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ensure the Lookup returns results as an array (e.g., `@activity('Lookup1').output.value`)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Iterate with ForEach Activity&lt;BR /&gt;Configure the ForEach activity to process each table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Iterate with ForEach Activity&lt;BR /&gt;Configure the ForEach activity to process each table&lt;BR /&gt;"items": "@activity('Lookup1').output.value"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Lookup Activity (Get Table List)&lt;BR /&gt;2. ForEach Activity (Iterate Tables)&lt;BR /&gt;&amp;nbsp;If Activity (Filter Table)&lt;BR /&gt;Copy Data Activity (Valid Tables)&lt;BR /&gt;Optional: Logging Activity (Skipped Tables)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Azure/AnalyticsinaBox/tree/main/Fabric/src/deployment/Pattern1and2" target="_blank"&gt;https://github.com/Azure/AnalyticsinaBox/tree/main/Fabric/src/deployment/Pattern1and2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this is helpful please accept the answer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 12:28:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4590018#M7185</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-28T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load list of table name in pipeline with foreach</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4595191#M7213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="913195" data-lia-user-login="nilendraFabric" class="lia-mention lia-mention-user"&gt;nilendraFabric&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for you explanation and steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently in pipeline, it seems impossible to use a stored procedure created in a Lakehouse.&lt;/P&gt;&lt;P&gt;The "stored procedure" activity accepts only Warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I store&amp;nbsp;&lt;SPAN&gt;table names in a configuration in a Lakehouse?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you have different proposal ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Théo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:03:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4595191#M7213</guid>
      <dc:creator>Theo_MS</dc:creator>
      <dc:date>2025-03-04T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load list of table name in pipeline with foreach</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4595200#M7214</link>
      <description>&lt;P&gt;Add a Lookup activity to your pipeline:&lt;BR /&gt;• Source: Lakehouse table `config_table`.&lt;BR /&gt;• Configure to return all rows (not just the first)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4595200#M7214</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-03-04T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load list of table name in pipeline with foreach</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4628081#M7354</link>
      <description>&lt;P&gt;There is another way. You can create a parameter of type array, and enter your list into the default value. Then you use the parameter in the foreach activity and copy data activity. When in the copy data activity you use a query and can keep it simple by using&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="816487" data-lia-user-login="Item" class="lia-mention lia-mention-user"&gt;Item&lt;/a&gt;(), or you could write a query. I generally write a query to add columns to every table in the list. The destination will also have to be configured with&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="816487" data-lia-user-login="Item" class="lia-mention lia-mention-user"&gt;Item&lt;/a&gt;()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create Parameter:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Configure foreach activity:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Configure copy data activity:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Copy data destination configuration:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 18:07:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Load-list-of-table-name-in-pipeline-with-foreach/m-p/4628081#M7354</guid>
      <dc:creator>jpelham</dc:creator>
      <dc:date>2025-03-27T18:07:30Z</dc:date>
    </item>
  </channel>
</rss>

