<?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 get around the limitation of not being able to assign nested source list in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4430#M1970</link>
    <description>&lt;P&gt;This is such a great walk-through, thank you for sharing&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 21:41:41 GMT</pubDate>
    <dc:creator>meghan-legaspi</dc:creator>
    <dc:date>2023-05-09T21:41:41Z</dc:date>
    <item>
      <title>How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4393#M1963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm struggling with how to work around the limitation of not being able to add a source list within a source list.&amp;nbsp; I was able to setup the structure in a for-each loop the way that I want it (at that level the list is only 1 level deep as I iterated through the top list).&amp;nbsp; However, once outside the loop I want to add the whole structure to a list that later will be sent as an array of json items to an api call.&amp;nbsp; The issue is the limitation that I can't transfer the structure that I just setup to a list of the same structure...the datapills will not allow anything into this lower source list&amp;nbsp; In the example below the "Source mapping source list" is the list at the top level and "Values" is within that.&amp;nbsp; This is based on a structure that is read in from a get api call and massaged with additional data before POSTing it back.&lt;/P&gt;&lt;P&gt;Any suggestions that I can try...I'm stuck at this point.&amp;nbsp; TIA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michellepopovi_0-1683205496611.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/379iA3871549A4D842E7/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="michellepopovi_0-1683205496611.png" alt="michellepopovi_0-1683205496611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:29:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4393#M1963</guid>
      <dc:creator>michelle-popovi</dc:creator>
      <dc:date>2023-05-04T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4428#M1968</link>
      <description>&lt;P&gt;Here's a way you can trick Workato to do this, but there are some downsides.&lt;/P&gt;&lt;P&gt;Let's say we have this payload, and you want to recreate this in a list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[
  {"name": "vegetables",
   "list": [{"type": "garlic"},
              {"type": "onion"}]},
  
  {"name": "fruit",
   "list": [{"type": "apple"},
              {"type": "orange"},
              {"type": "pear"}]}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, don't define the entire schema of the nested list. Instead, create a &lt;STRONG&gt;string&lt;/STRONG&gt;&amp;nbsp;input field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1683663340921.png" style="width: 551px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/389iB67A7DF142C4BE59/image-dimensions/551x128/is-moderation-mode/true?v=v2" width="551" height="128" role="button" title="gary1_0-1683663340921.png" alt="gary1_0-1683663340921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next, set the input field of the nested list to &lt;STRONG&gt;formula&lt;/STRONG&gt; and drop in the "list" data pill.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_1-1683663455916.png" style="width: 540px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/390iCE6F6BE457A89F58/image-dimensions/540x339/is-moderation-mode/true?v=v2" width="540" height="339" role="button" title="gary1_1-1683663455916.png" alt="gary1_1-1683663455916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because it's in formula mode, Workato interprets the input as an array and parses it. (For fun, try re-running this with the input set to "text" and you'll see how Workato preserves the input as a string).&lt;/P&gt;&lt;P&gt;Here's the parsed output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_2-1683663498924.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/391iF80F065C52A13300/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_2-1683663498924.png" alt="gary1_2-1683663498924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The downside of this method is without the fully-declared schema in the list action you can't&amp;nbsp;&lt;EM&gt;easily&lt;/EM&gt; access the data in the array with a data pill. However, you can still access the data using a formula with bracket notation. Here are some examples.&lt;/P&gt;&lt;P&gt;This navigates to the second item in the outside array and then the third item in the nested array and returns the full object:&lt;/P&gt;&lt;P&gt;Logger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_6-1683663712563.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/395iED63D0CEB070B591/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_6-1683663712563.png" alt="gary1_6-1683663712563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_3-1683663636122.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/392i9655533FF4AC8E1E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_3-1683663636122.png" alt="gary1_3-1683663636122.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This navigates to the second item in the outside array and then the third item in the nested array and returns only the "type" value:&lt;/P&gt;&lt;P&gt;Logger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_7-1683663813957.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/396i16BCB7AA3848838D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_7-1683663813957.png" alt="gary1_7-1683663813957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_5-1683663696700.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/394i7BEA81DB2B4D1014/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_5-1683663696700.png" alt="gary1_5-1683663696700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 20:28:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4428#M1968</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-05-09T20:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4429#M1969</link>
      <description>&lt;P&gt;Thanks!...actually I was able to get it to work as I wanted...must be a quirk of the UI...the following instructions did it for me.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just click on the list in the data pill 3 times, and then drag it to the destination box.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 20:31:41 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4429#M1969</guid>
      <dc:creator>michelle-popovi</dc:creator>
      <dc:date>2023-05-09T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4430#M1970</link>
      <description>&lt;P&gt;This is such a great walk-through, thank you for sharing&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 21:41:41 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4430#M1970</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2023-05-09T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4432#M1971</link>
      <description>&lt;P&gt;Hey Michelle,&lt;/P&gt;
&lt;P&gt;I'm so glad it is working now! This data pill is giving some Dorothy vibes...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="meghanlegaspi_0-1683668629442.gif" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/397i0B27920570AB65D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="meghanlegaspi_0-1683668629442.gif" alt="meghanlegaspi_0-1683668629442.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you haven't already, please submit this product feedback via the Workato platform. From there, our team can look into this further.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;Meghan&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 21:44:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4432#M1971</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2023-05-09T21:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get around the limitation of not being able to assign nested source list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4438#M1975</link>
      <description>&lt;P&gt;Really?! That blows my mind. I actually can't get that to work on my end!&lt;/P&gt;&lt;P&gt;Edit: Good grief, I just got it to work and I'm in awe&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 22:22:22 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-get-around-the-limitation-of-not-being-able-to-assign/m-p/4438#M1975</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-05-09T22:22:22Z</dc:date>
    </item>
  </channel>
</rss>

