<?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: Custom Action - How to pass only values in an array (rather than name:value pairs) in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11587#M4450</link>
    <description>&lt;P&gt;Thanks for the additional info &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2026 22:18:16 GMT</pubDate>
    <dc:creator>RussellJ</dc:creator>
    <dc:date>2026-01-15T22:18:16Z</dc:date>
    <item>
      <title>Custom Action - How to pass only values in an array (rather than name:value pairs)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11583#M4446</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My first post here, so please be gentle&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This feels like an FAQ but after some searching on the forum I can't find what I'm looking for, so apologies in advance!&lt;/P&gt;&lt;P&gt;I'm creating a custom action (connecting to the Maxio application and creating a Subscription).&lt;/P&gt;&lt;P&gt;I've used the Guided Setup to create the custom action, which then needed some manual editing to get it to work. However I'm still stuck at one point.&lt;/P&gt;&lt;P&gt;There are two places in the JSON where I need to specify an array of objects.&amp;nbsp; The first is for a&amp;nbsp; list of "components" being passed, the second is for a list of "coupon_codes".&lt;/P&gt;&lt;P&gt;The JSON payload that works when calling the API directly (e.g. via Postman) looks like this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="components_screenshot.jpg" style="width: 703px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2503i2E50A300C01EC1D7/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="components_screenshot.jpg" alt="components_screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(EDIT: In the original version I stated that this JSON was generated by the guided Setup - that's not correct.&amp;nbsp; This is sample JSON used when calling the Maxio API directly from another application).&lt;/P&gt;&lt;P&gt;The problem I have is with the coupon_codes section.&amp;nbsp; Whereas in the components section, there's the usual name:value pair arrangement for each value being passed in the array (e.g. "component_id" : 2413376) for the coupon_codes section (as you can see from the screenshot) this is just a simple list of values ("BAPUK20OFF", "Coupon2") with no "name" being passed each time.&lt;/P&gt;&lt;P&gt;So I'm stuck with how to represent this in the Custom Action schema.&lt;/P&gt;&lt;P&gt;If I edit the &lt;STRONG&gt;Request body parameters&lt;/STRONG&gt;&amp;nbsp;for the Action I can create a field of type called "coupon_code", but if I want to create fields "nested" underneath it then I have to supply both a field name and label... and the field name/label is then used in the resulting JSON.&lt;/P&gt;&lt;P&gt;As a second issue, when I edit the &lt;STRONG&gt;Request body parameters&lt;/STRONG&gt;&amp;nbsp;for the Action and add a List field I'm not then ALWAYS seeing that reflected in the Data section underneath.&amp;nbsp; (Might be unconnected with the issue).&lt;/P&gt;&lt;P&gt;I hope/expect it's something obvious that I just can't see for looking!&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 16:51:35 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11583#M4446</guid>
      <dc:creator>RussellJ</dc:creator>
      <dc:date>2026-01-15T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action - How to pass only values in an array (rather than name:value pairs)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11584#M4447</link>
      <description>&lt;P&gt;Hi, welcome. If I'm understanding the issue correctly, you want to create a primitive array of strings, but the array defaults to an array of objects. You can update the object schema to match the below to create a primitive array of strings.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[
  {
    "label": "Coupon codes",
    "name": "coupon_codes",
    "type": "array",
    "optional": false,
    "of": "string" ## this defaults to "objects"
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When assigning a value to coupon_codes, simply pass in a primitive array like this:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;coupon_codes = "one,two,three".split(",")
## result = "coupon_codes": ["one", "two", "three"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 17:24:49 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11584#M4447</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-01-15T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action - How to pass only values in an array (rather than name:value pairs)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11585#M4448</link>
      <description>&lt;P&gt;You sir, are bang on the money!&amp;nbsp; Schema updated as suggested and a little split fun, and it's now working as wanted.&lt;/P&gt;&lt;P&gt;The "of": "string" piece was the key. But I don't think (using the GUI) you can set this combination of array/string? And (until now) I lacked this precious knowledge, so was never going to hit upon it.&lt;/P&gt;&lt;P&gt;Is there any documentation on this topic (or related), or Forum posts, around creating custom actions and manual editing of the schema that's worth a read? Feels like the Guided Setup doesn't quite do the whole job here, so manual tweaking is necessary.&lt;/P&gt;&lt;P&gt;Thanks &lt;STRONG&gt;so much&lt;/STRONG&gt; for a speedy and accurate reply!&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 17:52:32 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11585#M4448</guid>
      <dc:creator>RussellJ</dc:creator>
      <dc:date>2026-01-15T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action - How to pass only values in an array (rather than name:value pairs)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11586#M4449</link>
      <description>&lt;P&gt;Glad I could help!&lt;/P&gt;&lt;P&gt;This isn't possible in the GUI as far as I know.&lt;/P&gt;&lt;P&gt;Some actions (like function recipes) allow you to use JSON samples to automatically build the schema.&amp;nbsp;I used {"test": ["a","b","c"]} as the sample, then checked the schema it generated to find "of": "string". I think "of" can be other standard type value like number, boolean, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 18:58:24 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11586#M4449</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-01-15T18:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action - How to pass only values in an array (rather than name:value pairs)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11587#M4450</link>
      <description>&lt;P&gt;Thanks for the additional info &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 22:18:16 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-action-how-to-pass-only-values-in-an-array-rather-than/m-p/11587#M4450</guid>
      <dc:creator>RussellJ</dc:creator>
      <dc:date>2026-01-15T22:18:16Z</dc:date>
    </item>
  </channel>
</rss>

