<?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 Search in structure list in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/search-in-structure-list/m-p/8521#M3566</link>
    <description>&lt;P&gt;My recipe has the input parameter "Request Type". And we made a call to a JIRA API that returns this list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "requestTypeFields": [
        {
            "fieldId": "customfield_10072",
            "name": "Mobile Device Request Type",
            "description": "",
            "required": false,
            "defaultValues": [],
            "validValues": [
                {
                    "value": "10044",
                    "label": "New Order",
                    "children": []
                },
                {
                    "value": "10045",
                    "label": "Upgrade",
                    "children": []
                },
                {
                    "value": "10121",
                    "label": "Device Replacement",
                    "children": []
                }
            ],
            "jiraSchema": {
                "type": "option",
                "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
                "customId": 10072
            },
            "visible": true
        },
        {
            "fieldId": "customfield_10077",
            "name": "Device Storage",
            "description": "",
            "required": false,
            "defaultValues": [],
            "validValues": [
                {
                    "value": "10061",
                    "label": "64 GB",
                    "children": []
                },
                {
                    "value": "10062",
                    "label": "128 GB",
                    "children": []
                },
                {
                    "value": "10063",
                    "label": "256 GB",
                    "children": []
                },
                {
                    "value": "10064",
                    "label": "512 GB",
                    "children": []
                }
            ],
            "jiraSchema": {
                "type": "option",
                "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
                "customId": 10077
            },
            "visible": true
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to return the Value "value" among all the options ("validValues") of the field whose "name" is "Mobile Device Request Type" and whose "label" is equal to the input parameter "Request type".&lt;/P&gt;&lt;P&gt;I found this way to do it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img1.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1738iA3C3D95E0A651E67/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="img1.png" alt="img1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;But with the "where" is try to find an exact match. That mean "New Order" &amp;lt;&amp;gt; "new order".&lt;/P&gt;&lt;P&gt;Is there a way to do something like:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img2.png" style="width: 997px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1737iFC37F28040CDAD0B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="img2.png" alt="img2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thnaks in advance&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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;</description>
    <pubDate>Fri, 17 Jan 2025 15:47:01 GMT</pubDate>
    <dc:creator>jreategui</dc:creator>
    <dc:date>2025-01-17T15:47:01Z</dc:date>
    <item>
      <title>Search in structure list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/search-in-structure-list/m-p/8521#M3566</link>
      <description>&lt;P&gt;My recipe has the input parameter "Request Type". And we made a call to a JIRA API that returns this list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "requestTypeFields": [
        {
            "fieldId": "customfield_10072",
            "name": "Mobile Device Request Type",
            "description": "",
            "required": false,
            "defaultValues": [],
            "validValues": [
                {
                    "value": "10044",
                    "label": "New Order",
                    "children": []
                },
                {
                    "value": "10045",
                    "label": "Upgrade",
                    "children": []
                },
                {
                    "value": "10121",
                    "label": "Device Replacement",
                    "children": []
                }
            ],
            "jiraSchema": {
                "type": "option",
                "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
                "customId": 10072
            },
            "visible": true
        },
        {
            "fieldId": "customfield_10077",
            "name": "Device Storage",
            "description": "",
            "required": false,
            "defaultValues": [],
            "validValues": [
                {
                    "value": "10061",
                    "label": "64 GB",
                    "children": []
                },
                {
                    "value": "10062",
                    "label": "128 GB",
                    "children": []
                },
                {
                    "value": "10063",
                    "label": "256 GB",
                    "children": []
                },
                {
                    "value": "10064",
                    "label": "512 GB",
                    "children": []
                }
            ],
            "jiraSchema": {
                "type": "option",
                "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
                "customId": 10077
            },
            "visible": true
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to return the Value "value" among all the options ("validValues") of the field whose "name" is "Mobile Device Request Type" and whose "label" is equal to the input parameter "Request type".&lt;/P&gt;&lt;P&gt;I found this way to do it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img1.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1738iA3C3D95E0A651E67/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="img1.png" alt="img1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;But with the "where" is try to find an exact match. That mean "New Order" &amp;lt;&amp;gt; "new order".&lt;/P&gt;&lt;P&gt;Is there a way to do something like:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img2.png" style="width: 997px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1737iFC37F28040CDAD0B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="img2.png" alt="img2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thnaks in advance&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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;</description>
      <pubDate>Fri, 17 Jan 2025 15:47:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/search-in-structure-list/m-p/8521#M3566</guid>
      <dc:creator>jreategui</dc:creator>
      <dc:date>2025-01-17T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search in structure list</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/search-in-structure-list/m-p/8522#M3567</link>
      <description>&lt;P&gt;I find "where" very restrictive, and in most cases when I have to parse a complex array I use a Ruby action and different methods like filter, find, type, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suggestions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You could upcase the entire API response in a JSON parser, and then upcase your request type&lt;/LI&gt;&lt;LI&gt;You could input the API response into a Ruby action and parse it with different methods andmore flexibility&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 17 Jan 2025 16:59:44 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/search-in-structure-list/m-p/8522#M3567</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-01-17T16:59:44Z</dc:date>
    </item>
  </channel>
</rss>

