<?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 Inject variable list of into a parameter. in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11899#M4580</link>
    <description>&lt;P&gt;I have a list of Ids in a variable:&lt;BR /&gt;{ObjectTypes:[6,118,119]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;want to have this injected into a JSON parameter for a JIRA API call&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"qlQuery": "objectTypeId IN ()"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I tried using the variable between the () and it did not like the formula.&lt;/P&gt;&lt;P&gt;The resulting JSON should be:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"qlQuery": "objectTypeId IN (6,118,119)"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I could hard code this, but it is always better to be data driven.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 18:13:09 GMT</pubDate>
    <dc:creator>AMacourek</dc:creator>
    <dc:date>2026-02-17T18:13:09Z</dc:date>
    <item>
      <title>Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11899#M4580</link>
      <description>&lt;P&gt;I have a list of Ids in a variable:&lt;BR /&gt;{ObjectTypes:[6,118,119]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;want to have this injected into a JSON parameter for a JIRA API call&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"qlQuery": "objectTypeId IN ()"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I tried using the variable between the () and it did not like the formula.&lt;/P&gt;&lt;P&gt;The resulting JSON should be:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"qlQuery": "objectTypeId IN (6,118,119)"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I could hard code this, but it is always better to be data driven.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 18:13:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11899#M4580</guid>
      <dc:creator>AMacourek</dc:creator>
      <dc:date>2026-02-17T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11900#M4581</link>
      <description>&lt;P&gt;If the JSON is encoded as a string you have to use string interpolation like this:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;"{\"qlQuery\": \"objectTypeId IN (#{data pill goes here})\""&lt;/LI-CODE&gt;&lt;P&gt;Seeing a screenshot of your recipe would be more helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 18:12:35 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11900#M4581</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-17T18:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11903#M4582</link>
      <description>&lt;P&gt;Here is the step:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2598i5FE106144BF4415C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can put in the pure JSON, but I want the values of the array here.&lt;/P&gt;&lt;P&gt;If I do the following, it fails.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2599i2AE009008ED0005A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 20:54:41 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11903#M4582</guid>
      <dc:creator>AMacourek</dc:creator>
      <dc:date>2026-02-17T20:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11905#M4583</link>
      <description>&lt;P&gt;You probably don't want to use the "step output" data pill because that's going to insert the entire variable. You want to select the data pill within the variable that represent the value of ObjectTypes.&lt;/P&gt;&lt;P&gt;It also depends on how your previous step is configured. If&amp;nbsp;&lt;SPAN&gt;ObjectTypes is truly an array, you can't just insert the array into the JSON because it will insert with [brackets]. You'll need to stringify it first because qlQuery is a string data type and you want your text to be formatted correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming you have a data pill for&amp;nbsp;ObjectTypes, I would try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;{
"qlQuery": "objectTypeId IN (#{[ObjectTypes data pill].join(',')})"
}&lt;/LI-CODE&gt;&lt;P&gt;I tried the above and it worked fine. If it doesn't work on your end, I would need to see how you have step 7 configured.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 21:34:13 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11905#M4583</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-17T21:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11911#M4584</link>
      <description>&lt;P&gt;I am still getting errors:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2601i97EADAB5DC888584/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the schema for step 7&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="image.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2602i58DC3C2B9984F026/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the values I am setting on initialization:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2604i58AEB717C78A12C9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 04:22:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11911#M4584</guid>
      <dc:creator>AMacourek</dc:creator>
      <dc:date>2026-02-18T04:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inject variable list of into a parameter.</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11912#M4585</link>
      <description>&lt;P&gt;You're not supposed to copy the exact text I sent you.&lt;/P&gt;&lt;P&gt;Where I write:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;{
"qlQuery": "objectTypeId IN (#{[ObjectTypes data pill].join(',')})"
}&lt;/LI-CODE&gt;&lt;P&gt;You need to replace "[ObjectTypes data pill]" with the &lt;STRONG&gt;actual&lt;/STRONG&gt; data pill from the previous step of your recipe. A "data pill" is the UI element that you drag/click into the input field.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 04:32:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/inject-variable-list-of-into-a-parameter/m-p/11912#M4585</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-18T04:32:45Z</dc:date>
    </item>
  </channel>
</rss>

