<?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>Query question</title><link>https://community.appian.com/discussions/f/general/38334/query-question</link><description>I have a table with a legacy identifier and a current identifier. 
 I want to query the table, by first check the current identifier for a match, then fall back to the legacy one. 
 Is there a good way to do this with Appian queries? 
 I cant really do</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Query question</title><link>https://community.appian.com/thread/144399?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 19:38:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8bc0facf-df93-4d94-9a9f-457ab9fca4d0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;d expect you could do this in an expression rule wrapping your query entity - use OR filtering to find items that match either identifier, then use conditional logic (based on the result of the initial query) to return the result using the current identifier, if there was one, otherwise returning the legacy result, if there was one.&amp;nbsp; Shouldn&amp;#39;t even require a double-query (unless you&amp;#39;re strictly required to ONLY query on the legacy ID if the new ID has zero matches).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>