<?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 use except formula in the nested object ? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8030#M3363</link>
    <description>&lt;P&gt;Dear,&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11091"&gt;@amalim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Workato, the except formula does not directly work on nested object like you have in the user_fields. When you're trying to remove fields from a nested object, you can't use the except formula directly on fields within that nested structure.&lt;/P&gt;&lt;P&gt;To handle this is to reconstruct a new variable.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-15 100024.png" style="width: 588px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1616i821166F746E3B737/image-dimensions/588x153/is-moderation-mode/true?v=v2" width="588" height="153" role="button" title="Screenshot 2024-10-15 100024.png" alt="Screenshot 2024-10-15 100024.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 03:06:45 GMT</pubDate>
    <dc:creator>ndy</dc:creator>
    <dc:date>2024-10-15T03:06:45Z</dc:date>
    <item>
      <title>How to use except formula in the nested object ?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8025#M3360</link>
      <description>&lt;P&gt;I have an array which look like this below. I can manage to remove the 1st level of fields using except formula.&lt;BR /&gt;&lt;STRONG&gt;users[0].except(:two_factor_auth_enabled,:signature).&lt;BR /&gt;&lt;/STRONG&gt;I am trying to remove the nested object field using the below formula.&lt;BR /&gt;&lt;STRONG&gt;users[0].except(:two_factor_auth_enabled,:signature,:user_fields["city"]).&lt;/STRONG&gt;&lt;BR /&gt;But it is not working as expected. Kindly give me the solution for this process.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"users": [
        {
            "id": 12345,
            "name": "Abdul Khader Malim",
            "email": "amalim@logitech.com",
            "two_factor_auth_enabled": null,
            "signature": "",
            "user_fields": {
                "address_line_1": "3221 COLEMAN AVE",
                "address_line_2": null,
                "birth_year": null,
                "city": "OCEANSIDE",
                "company_school": null,
                "country": "country_nl",
                "gender": null,
                "newsletter_subscription": false,
                "postal_code": "92054",
                "region": null,
                "school_district": null,
                "site": null,
                "state": "CA"
            }
        }
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 14:47:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8025#M3360</guid>
      <dc:creator>amalim</dc:creator>
      <dc:date>2024-10-14T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use except formula in the nested object ?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8026#M3361</link>
      <description>&lt;P&gt;I can't find a way to target the nested array either. You might have to break it out separately and combine them. I'm interested to know if you find a more elegant solution.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 17:05:24 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8026#M3361</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-10-14T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use except formula in the nested object ?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8030#M3363</link>
      <description>&lt;P&gt;Dear,&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11091"&gt;@amalim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Workato, the except formula does not directly work on nested object like you have in the user_fields. When you're trying to remove fields from a nested object, you can't use the except formula directly on fields within that nested structure.&lt;/P&gt;&lt;P&gt;To handle this is to reconstruct a new variable.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-15 100024.png" style="width: 588px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1616i821166F746E3B737/image-dimensions/588x153/is-moderation-mode/true?v=v2" width="588" height="153" role="button" title="Screenshot 2024-10-15 100024.png" alt="Screenshot 2024-10-15 100024.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 03:06:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8030#M3363</guid>
      <dc:creator>ndy</dc:creator>
      <dc:date>2024-10-15T03:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use except formula in the nested object ?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8206#M3438</link>
      <description>&lt;P&gt;To remove top-level and nested fields in your object, use this:&lt;/P&gt;&lt;P&gt;modified_users = users.map do |user|&lt;BR /&gt;user.except(:two_factor_auth_enabled, :signature).merge(&lt;BR /&gt;user_fields: user[:user_fields]&amp;amp;.except(:city)&lt;BR /&gt;)&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;This removes :two_factor_auth_enabled and :signature from the top-level and :city from the nested user_fields.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:00:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-use-except-formula-in-the-nested-object/m-p/8206#M3438</guid>
      <dc:creator>timwolfe</dc:creator>
      <dc:date>2024-11-16T16:00:38Z</dc:date>
    </item>
  </channel>
</rss>

