<?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: how to Dynamically set connection GUID from variable array in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146039#M9303</link>
    <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I attempted both and received the following errors:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;@variables('pl_metadata').copy_job_connection_id&lt;BR /&gt;&lt;/STRONG&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;microsoft fabric The expression 'variables('pl_metadata').copy_job_connection_id' cannot be evaluated because property 'copy_job_connection' cannot be selected. Array elements can only be selected using an integer index.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;@variables('pl_metadata').value.copy_job_connection_id&lt;/STRONG&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;EM&gt;The expression 'variables('pl_metadata').value.copy_job_connection_id' cannot be evaluated because property 'value' cannot be selected. Array elements can only be selected using an integer index.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that my object is uing { }, which means its an object and not an array. Thus I see what you mean. So Data factory thinks it is dealing with an array, because I have stored this object as a variable array using the append variable activity. But it is in fact an object?! I'm not sure how to proceed.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2026 16:09:08 GMT</pubDate>
    <dc:creator>Mr_Coffee</dc:creator>
    <dc:date>2026-04-09T16:09:08Z</dc:date>
    <item>
      <title>how to Dynamically set connection GUID from variable array</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146009#M9300</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to dynamically pull the connection GUID from an array variable.&amp;nbsp;&lt;BR /&gt;My setup is as follows:&amp;nbsp;&lt;BR /&gt;I am using a lookup activity that pulls a single row of data from a SQL Table. I then use an append variable activity within a Foreach loop to create an Array variable that contains the key value pair of each column and record from the Lookup activity.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the copy data activity under the source tab, I'm trying to write a dynamic expression to pull the connection ID from the copy_job_connection_id key in the array below. Copilot is suggesting to use this, but it doesn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;variables(&lt;/SPAN&gt;&lt;SPAN&gt;'pl_metadata'&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN&gt;copy_job_connection&lt;/SPAN&gt;_id&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I know that I can define a single variable to represent the copy_job_connection_id and then reference that variable in the connection property of the copy data activity. However, I'd like to skip that and just pull the value from an array. Thoughts?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My array variable looks like this:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;"variableName": "pl_metadata",&lt;BR /&gt;"value": {&lt;BR /&gt;"data_set_name": "Data2",&lt;BR /&gt;"source_host": "server1",&lt;BR /&gt;"source_path": "D:\\Data\\dev\\test",&lt;BR /&gt;"source_file_type": ".xlsx",&lt;BR /&gt;"destination_host": "server2",&lt;BR /&gt;"copy_job_connection_id": "some Guid",&lt;BR /&gt;"load_type": "full",&lt;BR /&gt;"isActive": true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 15:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146009#M9300</guid>
      <dc:creator>Mr_Coffee</dc:creator>
      <dc:date>2026-04-09T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to Dynamically set connection GUID from variable array</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146016#M9301</link>
      <description>&lt;P class=""&gt;the issue is your array is actually not an array, its a single object so &lt;CODE class=""&gt;[0] wont work here&lt;/CODE&gt;&lt;/P&gt;
&lt;P class=""&gt;try this:&lt;BR /&gt;&lt;BR /&gt;@variables('pl_metadata').copy_job_connection_id&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;@variables('pl_metadata').value.copy_job_connection_id&lt;BR /&gt;&lt;BR /&gt;but honestly one more thing , connection GUID field in Copy Data activity is very strict, it doesnt always accept dynamic expression there, Microsoft has this limitation in many places&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 15:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146016#M9301</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2026-04-09T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to Dynamically set connection GUID from variable array</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146039#M9303</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I attempted both and received the following errors:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;@variables('pl_metadata').copy_job_connection_id&lt;BR /&gt;&lt;/STRONG&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;microsoft fabric The expression 'variables('pl_metadata').copy_job_connection_id' cannot be evaluated because property 'copy_job_connection' cannot be selected. Array elements can only be selected using an integer index.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;@variables('pl_metadata').value.copy_job_connection_id&lt;/STRONG&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;EM&gt;The expression 'variables('pl_metadata').value.copy_job_connection_id' cannot be evaluated because property 'value' cannot be selected. Array elements can only be selected using an integer index.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that my object is uing { }, which means its an object and not an array. Thus I see what you mean. So Data factory thinks it is dealing with an array, because I have stored this object as a variable array using the append variable activity. But it is in fact an object?! I'm not sure how to proceed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 16:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146039#M9303</guid>
      <dc:creator>Mr_Coffee</dc:creator>
      <dc:date>2026-04-09T16:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to Dynamically set connection GUID from variable array</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146069#M9304</link>
      <description>&lt;P&gt;the real issue is connection GUID field simply does not support dynamic expressions in Fabric&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Try this plz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after your foreach, add a Set Variable activity and do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@variables('pl_metadata')[0].copy_job_connection_id&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;store it in a simple string variable, then use that in Copy activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ir try&amp;nbsp;skip the append variable altogether and just reference lookup output directly in your set variable&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 16:35:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146069#M9304</guid>
      <dc:creator>nilendraMS</dc:creator>
      <dc:date>2026-04-09T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to Dynamically set connection GUID from variable array</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146070#M9305</link>
      <description>&lt;P&gt;the real issue is connection GUID field simply does not support dynamic expressions in Fabric&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Try this plz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after your foreach, add a Set Variable activity and do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@variables('pl_metadata')[0].copy_job_connection_id&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;store it in a simple string variable, then use that in Copy activity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ir try&amp;nbsp;skip the append variable altogether and just reference lookup output directly in your set variable&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 16:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/how-to-Dynamically-set-connection-GUID-from-variable-array/m-p/5146070#M9305</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2026-04-09T16:37:16Z</dc:date>
    </item>
  </channel>
</rss>

