<?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 Get value from list with multiple nested objects, based on a where formula in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7573#M3222</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have a Parse EDI task, of which the output we put in a list.&lt;BR /&gt;For a specific field, we need to pluck a value, based on a qualifier in an object.&lt;/P&gt;&lt;P&gt;The list "MOA loop" contains multiple "MOA" objects, each with an object "MonetaryAmount", which in itself contains 2 variables.&lt;BR /&gt;Based on the value of the first variable, we want to select the value of the 2nd variable.&lt;BR /&gt;Example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{                  MOA loop: 
[
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 176,
                          Monetaryamount 02: 2588.16
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 86,
                          Monetaryamount 02: 15528.98
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 79,
                          Monetaryamount 02: 12940.82
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 125,
                          Monetaryamount 02: 12940.82
                        }
                      }
                    }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this list, we want to get the Monetaryamount 02 where the Montaryamounttypequalifier 01 = "125".&lt;/P&gt;&lt;P&gt;Can someone help with this?&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;MOA.&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MOA.MONETARYAMOUNT_01.Monetaryamounttypequalifier_01'&lt;/SPAN&gt;&lt;SPAN class=""&gt;:"86"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pluck&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MOA'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MONETARYAMOUNT_01'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;'Monetaryamount_02'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;first&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 08:54:29 GMT</pubDate>
    <dc:creator>mlamotte</dc:creator>
    <dc:date>2024-09-12T08:54:29Z</dc:date>
    <item>
      <title>Get value from list with multiple nested objects, based on a where formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7573#M3222</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have a Parse EDI task, of which the output we put in a list.&lt;BR /&gt;For a specific field, we need to pluck a value, based on a qualifier in an object.&lt;/P&gt;&lt;P&gt;The list "MOA loop" contains multiple "MOA" objects, each with an object "MonetaryAmount", which in itself contains 2 variables.&lt;BR /&gt;Based on the value of the first variable, we want to select the value of the 2nd variable.&lt;BR /&gt;Example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{                  MOA loop: 
[
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 176,
                          Monetaryamount 02: 2588.16
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 86,
                          Monetaryamount 02: 15528.98
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 79,
                          Monetaryamount 02: 12940.82
                        }
                      }
                    },
                     
{
                      MOA: 
{
                        MONETARYAMOUNT 01: 
{
                          Monetaryamounttypequalifier 01: 125,
                          Monetaryamount 02: 12940.82
                        }
                      }
                    }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this list, we want to get the Monetaryamount 02 where the Montaryamounttypequalifier 01 = "125".&lt;/P&gt;&lt;P&gt;Can someone help with this?&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;MOA.&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MOA.MONETARYAMOUNT_01.Monetaryamounttypequalifier_01'&lt;/SPAN&gt;&lt;SPAN class=""&gt;:"86"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pluck&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MOA'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;'MONETARYAMOUNT_01'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;'Monetaryamount_02'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;first&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 08:54:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7573#M3222</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-09-12T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from list with multiple nested objects, based on a where formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7712#M3263</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Community_JSON.jpg" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1554i14729F7C63FA448C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Community_JSON.jpg" alt="Community_JSON.jpg" /&gt;&lt;/span&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10358"&gt;@mlamotte&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;MOA&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pluck&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"MONETARYAMOUNT_01"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Monetaryamounttypequalifier_01:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"125"&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;i.e. MOA is a Object&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Make it more dynamic by using &lt;STRONG&gt;.where condition after .pluck operation.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara Avadhani&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 10:53:51 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7712#M3263</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2024-09-16T10:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from list with multiple nested objects, based on a where formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7721#M3269</link>
      <description>&lt;P&gt;Thanks, even better solution!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 06:56:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/get-value-from-list-with-multiple-nested-objects-based-on-a/m-p/7721#M3269</guid>
      <dc:creator>mlamotte</dc:creator>
      <dc:date>2024-09-17T06:56:42Z</dc:date>
    </item>
  </channel>
</rss>

