<?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: Retrieve Item from Object in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471213#M787</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Do you mean to say the below is your activity output:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "resultSetCount": 1, "recordsAffected": 0, "resultSets": [ { "rowCount": 1, "rows": [ { "MaxMod": "2023-01-01T00:00:00Z" } ] } ], "outputParameters": {}, "outputLogs": "", "outputLogsLocation": "", "outputTruncated": false, "executionDuration": 55 }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and what value are you excatly after? can you highlight the part and your desired output so it would be clear to us?&lt;BR /&gt;&lt;BR /&gt;BUt based on my understanding, you can select a specifc array and then iterate it over via for each else you can convert the output to string using&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;string function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 12:58:35 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2023-10-11T12:58:35Z</dc:date>
    <item>
      <title>Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471108#M785</link>
      <description>&lt;P&gt;What's the syntax for getting something out of an Object to store in a string variable? I use a script activity to return a single value from a data warehouse:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "resultSetCount": 1, "recordsAffected": 0, "resultSets": [ { "rowCount": 1, "rows": [ { "MaxMod": "2023-01-01T00:00:00Z" } ] } ], "outputParameters": {}, "outputLogs": "", "outputLogsLocation": "", "outputTruncated": false, "executionDuration": 55 }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was trying to use the output, along the lines of:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@first(&lt;/SPAN&gt;&lt;SPAN&gt;activity(&lt;/SPAN&gt;&lt;SPAN&gt;'Get Max Mod'&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;resultSets) since each the response is an array, but each line in the array is an object so I can't do&amp;nbsp;@first(activity('Get Max Mod').output.resultSets.rows) or anything.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It's probably straightforward but I just can't see it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471108#M785</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2023-10-11T12:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471213#M787</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Do you mean to say the below is your activity output:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "resultSetCount": 1, "recordsAffected": 0, "resultSets": [ { "rowCount": 1, "rows": [ { "MaxMod": "2023-01-01T00:00:00Z" } ] } ], "outputParameters": {}, "outputLogs": "", "outputLogsLocation": "", "outputTruncated": false, "executionDuration": 55 }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and what value are you excatly after? can you highlight the part and your desired output so it would be clear to us?&lt;BR /&gt;&lt;BR /&gt;BUt based on my understanding, you can select a specifc array and then iterate it over via for each else you can convert the output to string using&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;string function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:58:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471213#M787</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2023-10-11T12:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471232#M788</link>
      <description>&lt;P&gt;Apologies if I wasn't clear, I need to store the value '&lt;SPAN&gt;2023-01-01T00:00:00Z' in a string variable (set variable activity) and I need to know what I need to enter into the Value field (Pipeline expression builder) in order to do that.&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:02:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3471232#M788</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2023-10-11T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3472207#M799</link>
      <description>&lt;P&gt;Did you try `&lt;SPAN&gt;@first(activity('Get Max Mod').output.resultSets[0].rows` ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 21:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3472207#M799</guid>
      <dc:creator>ajarora</dc:creator>
      <dc:date>2023-10-11T21:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3472956#M801</link>
      <description>&lt;P&gt;Didn't work, got the same "Can't put an Object into a string variable" error message. If I do&amp;nbsp;&lt;SPAN&gt;@first(activity('Get Max Mod').output.resultSets[0].rows[0].MaxMod) then the activity succeeds but the stored value is just "1" and not the date/time I need.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 08:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3472956#M801</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2023-10-12T08:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473003#M802</link>
      <description>&lt;P&gt;I switched the activity from Script to Lookup which got me what I need. I used the same query then&amp;nbsp;&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;'Get Max Mod'&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;firstRow&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MaxMod with the "first row only" option ticked worked. But there still should be a way to do this with Script activities.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Oct 2023 08:57:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473003#M802</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2023-10-12T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473024#M803</link>
      <description>&lt;P&gt;Found it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;'Get Max Mod'&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;resultSets&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;rows&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;MaxMod&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I guess the first() breaks it. Thanks for pointing me in the right direction.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473024#M803</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2023-10-12T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Item from Object</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473487#M811</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458171" data-lia-user-login="MOVC" class="lia-mention lia-mention-user"&gt;MOVC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;Glad to know that your issue got resolved.&amp;nbsp;Please continue using fabric for help regarding your issues.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 12:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Retrieve-Item-from-Object/m-p/3473487#M811</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2023-10-12T12:43:56Z</dc:date>
    </item>
  </channel>
</rss>

