<?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 Add New Column with Dynamic content in Copy Activity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/4998888#M9098</link>
    <description>&lt;P&gt;Hi everyone!&lt;BR /&gt;&lt;BR /&gt;I'm facing a challenge in a copy activity of my pipeline.&lt;BR /&gt;&lt;BR /&gt;Context:&lt;/P&gt;&lt;P&gt;I have a pipeline that makes api calls. The apis use something like the following format /api/emails/{email_id)/forms.&lt;BR /&gt;In order to be able to reach the "forms" part, I have first made a Copy activity for /api/emails and stored the results in a lakehouse table. Then I added a lookup activity that extracts the distinct email_ids and feeds them in a for each loop.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inside ForEach there is another copy activity that utilizes each time the relevant email_id to create the respective relative url (eg.&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'/api/emails/'&lt;/SPAN&gt;&lt;SPAN&gt;, item().&lt;/SPAN&gt;&lt;SPAN&gt;email_id, '/forms'&lt;/SPAN&gt;&lt;SPAN&gt;) and proceed with the call. And this works fine.&lt;BR /&gt;&lt;BR /&gt;However the response from&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'/api/emails/'&lt;/SPAN&gt;&lt;SPAN&gt;, item().&lt;/SPAN&gt;&lt;SPAN&gt;email_id, '/forms') does not have email_id as a property. So basically if I just land the resutls in a table I will not know to which email_id each result is linked to. So my goal is in the final table to have the api's original response columns AND the email_id that will be properly generated in each loop.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;In the Mapping configuration of the copy activity I tried adding a new column to utilize the&amp;nbsp;item().email_id but dynamic content doesn't seem to work.&lt;BR /&gt;&lt;BR /&gt;I also tried to make the change via View-&amp;gt;Edit JSON code or add the column in the Source configuration "Addiotional Columns", but the first one didn't work and the second one seems to expect a list, not a single value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;FYI the api's response is in json format.&lt;BR /&gt;&lt;BR /&gt;Has anyone come across to something similar? And if yes how did you proceed?&lt;BR /&gt;I'll be very gratefull for your input!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;BR /&gt;Rafaela&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 08:06:27 GMT</pubDate>
    <dc:creator>Rafaela07</dc:creator>
    <dc:date>2026-02-06T08:06:27Z</dc:date>
    <item>
      <title>Add New Column with Dynamic content in Copy Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/4998888#M9098</link>
      <description>&lt;P&gt;Hi everyone!&lt;BR /&gt;&lt;BR /&gt;I'm facing a challenge in a copy activity of my pipeline.&lt;BR /&gt;&lt;BR /&gt;Context:&lt;/P&gt;&lt;P&gt;I have a pipeline that makes api calls. The apis use something like the following format /api/emails/{email_id)/forms.&lt;BR /&gt;In order to be able to reach the "forms" part, I have first made a Copy activity for /api/emails and stored the results in a lakehouse table. Then I added a lookup activity that extracts the distinct email_ids and feeds them in a for each loop.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inside ForEach there is another copy activity that utilizes each time the relevant email_id to create the respective relative url (eg.&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'/api/emails/'&lt;/SPAN&gt;&lt;SPAN&gt;, item().&lt;/SPAN&gt;&lt;SPAN&gt;email_id, '/forms'&lt;/SPAN&gt;&lt;SPAN&gt;) and proceed with the call. And this works fine.&lt;BR /&gt;&lt;BR /&gt;However the response from&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'/api/emails/'&lt;/SPAN&gt;&lt;SPAN&gt;, item().&lt;/SPAN&gt;&lt;SPAN&gt;email_id, '/forms') does not have email_id as a property. So basically if I just land the resutls in a table I will not know to which email_id each result is linked to. So my goal is in the final table to have the api's original response columns AND the email_id that will be properly generated in each loop.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;In the Mapping configuration of the copy activity I tried adding a new column to utilize the&amp;nbsp;item().email_id but dynamic content doesn't seem to work.&lt;BR /&gt;&lt;BR /&gt;I also tried to make the change via View-&amp;gt;Edit JSON code or add the column in the Source configuration "Addiotional Columns", but the first one didn't work and the second one seems to expect a list, not a single value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;FYI the api's response is in json format.&lt;BR /&gt;&lt;BR /&gt;Has anyone come across to something similar? And if yes how did you proceed?&lt;BR /&gt;I'll be very gratefull for your input!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;BR /&gt;Rafaela&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 08:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/4998888#M9098</guid>
      <dc:creator>Rafaela07</dc:creator>
      <dc:date>2026-02-06T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add New Column with Dynamic content in Copy Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/4999247#M9102</link>
      <description>&lt;DIV&gt;The cleanest way to “carry” the &lt;CODE&gt;email_id&lt;/CODE&gt; into the sink is to &lt;STRONG&gt;add it as an extra source column in the Copy activity&lt;/STRONG&gt; (inside the ForEach) so it flows through mapping alongside the API payload.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;one way to do it:&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;
&lt;OL&gt;
&lt;LI&gt;Edit your REST &lt;STRONG&gt;dataset&lt;/STRONG&gt; and add a parameter, e.g. &lt;CODE&gt;EmailId&lt;/CODE&gt; (string).&lt;/LI&gt;
&lt;LI&gt;In the Copy activity (inside ForEach), pass the item into the dataset:
&lt;UL&gt;
&lt;LI&gt;Dataset parameter &lt;STRONG&gt;EmailId&lt;/STRONG&gt; = &lt;CODE&gt;&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;().email_id&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;In &lt;STRONG&gt;Source → Additional columns&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: &lt;CODE&gt;email_id&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;: &lt;CODE&gt;@dataset().EmailId&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;This avoids using &lt;CODE&gt;item()&lt;/CODE&gt; directly in the Additional columns and can be easier to maintain.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Feb 2026 13:46:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/4999247#M9102</guid>
      <dc:creator>Thomaslleblanc</dc:creator>
      <dc:date>2026-02-06T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add New Column with Dynamic content in Copy Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/5003785#M9112</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="498348" data-lia-user-login="Thomaslleblanc" class="lia-mention lia-mention-user"&gt;Thomaslleblanc&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;I will mark it as solution, however I have a further question.&lt;BR /&gt;What if the only experience your admin has assigned in the workspace is PowerBI and Data Factory or Data Engineering experiences cannot be reached due to that?&lt;BR /&gt;You mentioned that your response is the "cleanest" way to approach this so that makes me think that there are also alternatives and I was wandering if one of them also bypasses the example I've just given.&lt;BR /&gt;&lt;BR /&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 10:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/5003785#M9112</guid>
      <dc:creator>Rafaela07</dc:creator>
      <dc:date>2026-02-10T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add New Column with Dynamic content in Copy Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/5004171#M9113</link>
      <description>&lt;P&gt;Your question mentions Copy Activity, which is only in Fabric enabled resources (Data Factory or Data Engineering). If you just have Power BI/Semantic model, then you would not be able to edit the Copy Activity.&lt;BR /&gt;&lt;BR /&gt;The REST API could be called from PoweryQuery, but you would need access to the API code to add the email to the returned results or store in a parameter&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 14:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-New-Column-with-Dynamic-content-in-Copy-Activity/m-p/5004171#M9113</guid>
      <dc:creator>Thomaslleblanc</dc:creator>
      <dc:date>2026-02-10T14:36:20Z</dc:date>
    </item>
  </channel>
</rss>

