<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Compare</title><link>https://community.appian.com/discussions/f/general/40483/compare</link><description>Hi All, 
 
 I want to compare the record type and a map that have similar data , I want to compare if it is same then create a list of that fields name. 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Compare</title><link>https://community.appian.com/thread/154843?ContentTypeID=1</link><pubDate>Sun, 07 Jun 2026 13:23:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb9fec54-0e14-4ce0-94e6-38d84ecdc158</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;You should try this and r&lt;/span&gt;eplace the actual ri! with your record value or parameter.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!fields: a!keys(ri!mapData),
  reject(
    fn!isnull,
    a!forEach(
      items: local!fields,
      expression: a!localVariables(
        local!recVal: index(ri!recordData, fv!item, null),
        local!mapVal: index(ri!mapData, fv!item, null),
        if(
          and(
            not(a!isNullOrEmpty(local!recVal)),
            tostring(local!recVal) = tostring(local!mapVal)
          ),
          fv!item,
          null
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare</title><link>https://community.appian.com/thread/154841?ContentTypeID=1</link><pubDate>Sun, 07 Jun 2026 07:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49675a30-57a9-4973-a6f3-d2c04f0debe4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Did you try to iterate on the fields and compare them? Do you already have something and are stuck?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>