<?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>question Re: How to apply a condition on a map of a nested list using RecordPath language in UpdateRecord in Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386688#M246120</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110055"&gt;@nidhipal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looks like you figured this out here,&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Possible-RecordPath-to-fetch-data-from-a-list-based-on-a/m-p/386665/highlight/true#M246104" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Possible-RecordPath-to-fetch-data-from-a-list-based-on-a/m-p/386665/highlight/true#M246104&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The added RecordPath works.&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;../goodIdentifications[*][./goodIdentificationTypeId = "SKU"]/idValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 10:23:58 GMT</pubDate>
    <dc:creator>gurveen</dc:creator>
    <dc:date>2024-04-17T10:23:58Z</dc:date>
    <item>
      <title>How to apply a condition on a map of a nested list using RecordPath language in UpdateRecord in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386659#M246101</link>
      <description>&lt;P&gt;The feed json is like below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "orderId": "10000",
    "orderItems": [
      {
        "orderItemSeqId": "10001",
        "productIdentifications": [
          {
            "productIdentificationTypeId": "SKU",
            "idValue": "98706"
          },
          {
            "productIdentificationTypeId": "UPCA",
            "idValue": "98788"
          },
          {
            "productIdentificationTypeId": "HS_CODE",
            "idValue": "98790"
          }
        ]
      },
      {
        "orderItemSeqId": "10002",
        "productIdentifications": [
          {
            "productIdentificationTypeId": "SKU",
            "idValue": "98690"
          },
          {
            "productIdentificationTypeId": "UPCA",
            "idValue": "98698"
          },
          {
            "productIdentificationTypeId": "HS_CODE",
            "idValue": "98999"
          }
        ]
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;Requirement- Prepare two new fields for each item of an order.&lt;/P&gt;&lt;P&gt;1. Style: idValue of&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;productIdentification whose&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;productIdentificationTypeId is SKU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;UPC: idValue of&amp;nbsp;&lt;SPAN&gt;productIdentification whose&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;productIdentificationTypeId is UPCA.&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The output json should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "orderId": "10000",
    "orderItems": [
      {
        "orderItemSeqId": "10001",
        "productIdentifications": [
          {
            "productIdentificationTypeId": "SKU",
            "idValue": "98706"
          },
          {
            "productIdentificationTypeId": "UPCA",
            "idValue": "98788"
          },
          {
            "productIdentificationTypeId": "HS_CODE",
            "idValue": "98790"
          }
        ],
        "Style": "98706",
        "UPC": "98788"
      },
      {
        "orderItemSeqId": "10002",
        "productIdentifications": [
          {
            "productIdentificationTypeId": "SKU",
            "idValue": "98690"
          },
          {
            "productIdentificationTypeId": "UPCA",
            "idValue": "98698"
          },
          {
            "productIdentificationTypeId": "HS_CODE",
            "idValue": "98999"
          }
        ],
        "Style": "98690",
        "UPC": "98698"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried this property in UpdateRecord using RecordPath language but it didn't work.&lt;/P&gt;&lt;P&gt;name: "&lt;SPAN class="table-cell"&gt;/orderItems[*]/Style&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;value: "/orderItems[*]/goodIdentifications[./goodIdentificationTypeId='SKU']/idValue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 19:59:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386659#M246101</guid>
      <dc:creator>nidhipal</dc:creator>
      <dc:date>2024-04-16T19:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a condition on a map of a nested list using RecordPath language in UpdateRecord in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386664#M246103</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110055"&gt;@nidhipal&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 20:43:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386664#M246103</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-04-16T20:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a condition on a map of a nested list using RecordPath language in UpdateRecord in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386688#M246120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110055"&gt;@nidhipal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looks like you figured this out here,&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Possible-RecordPath-to-fetch-data-from-a-list-based-on-a/m-p/386665/highlight/true#M246104" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Possible-RecordPath-to-fetch-data-from-a-list-based-on-a/m-p/386665/highlight/true#M246104&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The added RecordPath works.&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;../goodIdentifications[*][./goodIdentificationTypeId = "SKU"]/idValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 10:23:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-apply-a-condition-on-a-map-of-a-nested-list-using/m-p/386688#M246120</guid>
      <dc:creator>gurveen</dc:creator>
      <dc:date>2024-04-17T10:23:58Z</dc:date>
    </item>
  </channel>
</rss>

