<?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: Dynamic Hash Key in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/dynamic-hash-key/m-p/10390#M4134</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12103"&gt;@kylevarga&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The error you're seeing is likely due to a key mismatch between your lookup table and the actual &lt;STRONG&gt;jira&lt;/STRONG&gt; object.&lt;BR /&gt;In your example, you’ve defined the jira object like this:&lt;/P&gt;&lt;PRE&gt;jira = {'field_1__c': '123' }&lt;/PRE&gt;&lt;P&gt;But in your loop, you're doing:&lt;/P&gt;&lt;PRE&gt;jira[fieldLookup['jira']]&lt;/PRE&gt;&lt;P&gt;And your lookup table contains:&lt;/P&gt;&lt;PRE&gt;lookuptable = [{'jira': 'field1', 'sf': 'field_1__c' }]&lt;/PRE&gt;&lt;P&gt;So basically, your code is trying to access &lt;STRONG&gt;jira['field1']&lt;/STRONG&gt;, but that key doesn’t exist in the JIRA object — it only has &lt;STRONG&gt;field_1__c&lt;/STRONG&gt; That’s why you’re getting an error.&lt;BR /&gt;Also, just a quick note —&lt;STRONG&gt; field_1__c&lt;/STRONG&gt; looks like a Salesforce custom field (since &lt;STRONG&gt;__c&lt;/STRONG&gt; is usually used for those), so it probably belongs to Salesforce, not JIRA.&lt;BR /&gt;Hope I got your question right — let me know if I misunderstood anything!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2025 04:34:31 GMT</pubDate>
    <dc:creator>Bhagya_pola</dc:creator>
    <dc:date>2025-07-10T04:34:31Z</dc:date>
    <item>
      <title>Dynamic Hash Key</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/dynamic-hash-key/m-p/10386#M4132</link>
      <description>&lt;P&gt;Has anyone had success using a dynamic hash key? Use case is I have a lookup table that has 2 columns that are just Keys and I have 2 objects (one from JIRA one from Salesforce) and I want to loop through each lookup table and do a comparison to determine if the values changed. pseudocode version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sf = {'field1': '123'}
jira = {'field_1__c': '123' }
lookuptable = [{'jira': 'field1', 'sf': 'field_1__c' }]
for fieldLookup in lookuptable:
  if jira[fieldLookup['jira']] != sf[fieldLookup['sf']:
    isChanged=True&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My attempts using jiraFieldsPill[jiraLookupPill]&amp;nbsp; and&amp;nbsp;jiraFieldsPill["jiraLookupPill"]&amp;nbsp; keep just giving me generic 'Recipe Error'&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 22:34:27 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/dynamic-hash-key/m-p/10386#M4132</guid>
      <dc:creator>kylevarga</dc:creator>
      <dc:date>2025-07-09T22:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Hash Key</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/dynamic-hash-key/m-p/10390#M4134</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12103"&gt;@kylevarga&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The error you're seeing is likely due to a key mismatch between your lookup table and the actual &lt;STRONG&gt;jira&lt;/STRONG&gt; object.&lt;BR /&gt;In your example, you’ve defined the jira object like this:&lt;/P&gt;&lt;PRE&gt;jira = {'field_1__c': '123' }&lt;/PRE&gt;&lt;P&gt;But in your loop, you're doing:&lt;/P&gt;&lt;PRE&gt;jira[fieldLookup['jira']]&lt;/PRE&gt;&lt;P&gt;And your lookup table contains:&lt;/P&gt;&lt;PRE&gt;lookuptable = [{'jira': 'field1', 'sf': 'field_1__c' }]&lt;/PRE&gt;&lt;P&gt;So basically, your code is trying to access &lt;STRONG&gt;jira['field1']&lt;/STRONG&gt;, but that key doesn’t exist in the JIRA object — it only has &lt;STRONG&gt;field_1__c&lt;/STRONG&gt; That’s why you’re getting an error.&lt;BR /&gt;Also, just a quick note —&lt;STRONG&gt; field_1__c&lt;/STRONG&gt; looks like a Salesforce custom field (since &lt;STRONG&gt;__c&lt;/STRONG&gt; is usually used for those), so it probably belongs to Salesforce, not JIRA.&lt;BR /&gt;Hope I got your question right — let me know if I misunderstood anything!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 04:34:31 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/dynamic-hash-key/m-p/10390#M4134</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-07-10T04:34:31Z</dc:date>
    </item>
  </channel>
</rss>

