<?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 create an array from specific JSON key values for ForEach activity. in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3729309#M1981</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;The Parameter is just an example for demonstration purpose.&lt;/P&gt;&lt;P&gt;If the file size is less, you can use lookup activity to read the file and use that lokup value inplace of parameter&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 03:33:30 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2024-02-28T03:33:30Z</dc:date>
    <item>
      <title>How to create an array from specific JSON key values for ForEach activity.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3725151#M1969</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a JSON file with this structure from a CopyData activity step in my Data Factory pipeline:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"value": [{&lt;BR /&gt;"id": "123",&lt;BR /&gt;"isReadOnly": false,&lt;BR /&gt;//additional key-values&lt;BR /&gt;}, {&lt;BR /&gt;"id": "1234",&lt;BR /&gt;"isReadOnly": false,&lt;BR /&gt;//additional key-values&lt;BR /&gt;}, {&lt;BR /&gt;"id": "12345",&lt;BR /&gt;"isReadOnly": false,&lt;BR /&gt;//additional key-values&lt;BR /&gt;},&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract all the 'ids' and turn them into an array so that I can iterate over them in a ForEach activity in Data Factory ex. ["123","1234","12345"]. How do I accomplish this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to Data Factory so thank you for any other suggestions regarding using the ForEach to iterate over all the ids. As well, if you are able, the more detail the better. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 21:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3725151#M1969</guid>
      <dc:creator>Neka</dc:creator>
      <dc:date>2024-02-26T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an array from specific JSON key values for ForEach activity.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3725862#M1970</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;The output Value is by default an Array.&lt;/P&gt;&lt;P&gt;You can iterate over the Copy activity output directly via For each and get the ID details per iteration itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;where parameter Test value is :&lt;/P&gt;&lt;P&gt;[{ "id": "123", "isReadOnly": false }, { "id": "1234", "isReadOnly": false }]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use For each activity to iterate over the value directly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;within for each, use Set variable activity to get the ID value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 03:28:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3725862#M1970</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-02-27T03:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an array from specific JSON key values for ForEach activity.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3728646#M1979</link>
      <description>&lt;P&gt;Thank you for answering my question, but how do I make the Default Value in the Parameters my Id key from my JSON file? In your example, it looks like the JSON file has been copy pasted into default value but since I'm creating a new JSON file everytime I run copy data, how would I make sure that that new JSON file is always used?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:40:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3728646#M1979</guid>
      <dc:creator>Neka</dc:creator>
      <dc:date>2024-02-27T20:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an array from specific JSON key values for ForEach activity.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3729309#M1981</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;The Parameter is just an example for demonstration purpose.&lt;/P&gt;&lt;P&gt;If the file size is less, you can use lookup activity to read the file and use that lokup value inplace of parameter&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 03:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-create-an-array-from-specific-JSON-key-values-for-ForEach/m-p/3729309#M1981</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-02-28T03:33:30Z</dc:date>
    </item>
  </channel>
</rss>

