<?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 How to avoid a nested ForEach activity and a json settings file in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-avoid-a-nested-ForEach-activity-and-a-json-settings-file/m-p/4598290#M7231</link>
    <description>&lt;P&gt;I have the pipeline belwo which works great. It works for a single process and uses paths etc for this process.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need to use this pipeline for five processes, (in which some settings are different every run, like the path it takes files from, the file type, and the destination tables).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my solution:&lt;/P&gt;&lt;P&gt;Add a lookup activity which looks up a json file stored in my lakehouse. This json file has all the settings for each of the processes:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then: I would copy the pipeline mentioned earlier as a whole in a ForEach activity, so the correct settings are applied on each run. This would like like the below:&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;However, the problem is that in data factory, it is not possible to use a ForEach activity within a ForEach activity.... And I do really need these ForEach activity's to copy multiple files etc.&lt;/P&gt;&lt;P&gt;So my question is: how to do this in an elegant, dynamic way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;A solution would be to copy the whole pipeline, paste it 5 times under each other. But then if I need to make a change i need to do it 5 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 10:17:46 GMT</pubDate>
    <dc:creator>eurenergy</dc:creator>
    <dc:date>2025-03-06T10:17:46Z</dc:date>
    <item>
      <title>How to avoid a nested ForEach activity and a json settings file</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-avoid-a-nested-ForEach-activity-and-a-json-settings-file/m-p/4598290#M7231</link>
      <description>&lt;P&gt;I have the pipeline belwo which works great. It works for a single process and uses paths etc for this process.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need to use this pipeline for five processes, (in which some settings are different every run, like the path it takes files from, the file type, and the destination tables).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my solution:&lt;/P&gt;&lt;P&gt;Add a lookup activity which looks up a json file stored in my lakehouse. This json file has all the settings for each of the processes:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then: I would copy the pipeline mentioned earlier as a whole in a ForEach activity, so the correct settings are applied on each run. This would like like the below:&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;However, the problem is that in data factory, it is not possible to use a ForEach activity within a ForEach activity.... And I do really need these ForEach activity's to copy multiple files etc.&lt;/P&gt;&lt;P&gt;So my question is: how to do this in an elegant, dynamic way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;A solution would be to copy the whole pipeline, paste it 5 times under each other. But then if I need to make a change i need to do it 5 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:17:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-avoid-a-nested-ForEach-activity-and-a-json-settings-file/m-p/4598290#M7231</guid>
      <dc:creator>eurenergy</dc:creator>
      <dc:date>2025-03-06T10:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid a nested ForEach activity and a json settings file</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-avoid-a-nested-ForEach-activity-and-a-json-settings-file/m-p/4598427#M7235</link>
      <description>&lt;P&gt;you can trigger an Execute pipeline activity from within a for each activity.&lt;/P&gt;
&lt;P&gt;So you can have a pipeline with your main framework and call that pipeline from within foreach activity in another pipeline&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 11:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-avoid-a-nested-ForEach-activity-and-a-json-settings-file/m-p/4598427#M7235</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2025-03-06T11:37:43Z</dc:date>
    </item>
  </channel>
</rss>

