<?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: Fabric Set variable Select id from table in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414491#M7103</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="886622" data-lia-user-login="Reponen" class="lia-mention lia-mention-user"&gt;Reponen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matching: Ensure the column name `id` matches exactly (case-sensitive) with your table schema.&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;@activity('GetDataFromTable').output.value[0].id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@activity('GetDataFromTable').output.value.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this is helpful please accept the answer and give kudos&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 21:45:17 GMT</pubDate>
    <dc:creator>nilendraFabric</dc:creator>
    <dc:date>2025-02-17T21:45:17Z</dc:date>
    <item>
      <title>Fabric Set variable Select id from table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414385#M7102</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new with Fabric and Data factory.&lt;/P&gt;&lt;P&gt;I have currently proplem that my set variable selects whole row but i only need id column from table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SetVariable now:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;activity(&lt;/SPAN&gt;&lt;SPAN&gt;'GetDataFromTable'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;value"&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How i fix this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Feb 2025 18:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414385#M7102</guid>
      <dc:creator>Reponen</dc:creator>
      <dc:date>2025-02-17T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Set variable Select id from table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414491#M7103</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="886622" data-lia-user-login="Reponen" class="lia-mention lia-mention-user"&gt;Reponen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matching: Ensure the column name `id` matches exactly (case-sensitive) with your table schema.&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;@activity('GetDataFromTable').output.value[0].id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@activity('GetDataFromTable').output.value.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this is helpful please accept the answer and give kudos&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 21:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414491#M7103</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-17T21:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Set variable Select id from table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414748#M7106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="886622" data-lia-user-login="Reponen" class="lia-mention lia-mention-user"&gt;Reponen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&amp;nbsp;nilendraFabric&amp;nbsp;for your prompt reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a single row,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@activity('GetDataFromTable').output.value[0].id&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume the output of GetDataFromTable is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "value": {
    "id": 123,
    "name": "example",
    "age": 30
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then @activity('GetDataFromTable').output.value.id will return 123.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For multiple rows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@array(activity('GetDataFromTable').output.value, item().id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume the output of GetDataFromTable is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "value": [
    { "id": 1, "name": "Alice" },
    { "id": 2, "name": "Bob" }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then @array(activity('GetDataFromTable').output.value, item().id) will return [1, 2].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 02:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4414748#M7106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-18T02:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Set variable Select id from table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4415864#M7109</link>
      <description>&lt;P&gt;If i try to use it says that&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&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;() syntax can only be used in the filter activity or child activities of a foreach activity&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;@array(activity('GetDataFromTable').output.value, item().id)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works&amp;nbsp;&lt;SPAN&gt;@activity('GetDataFromTable').output.value[0].id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but gives only first id.&lt;/P&gt;&lt;P&gt;I need a array of ids&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-Set-variable-Select-id-from-table/m-p/4415864#M7109</guid>
      <dc:creator>Reponen</dc:creator>
      <dc:date>2025-02-18T12:25:09Z</dc:date>
    </item>
  </channel>
</rss>

