<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.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>getBean parameters not behaving the way I would expect.</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/8149/getbean-parameters-not-behaving-the-way-i-would-expect</link><description>I was excited to find in Link2.php that getBeans can take parameters to filter the beans that are retrieved. 
 I want to get the latest related record in code. 
 I was hoping to get it by ordering by date_modified and using a limit of 1 
 
 
 Similarly</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: getBean parameters not behaving the way I would expect.</title><link>https://sugarclub.sugarcrm.com/thread/33186?ContentTypeID=1</link><pubDate>Sat, 28 Jun 2025 23:16:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5a6ed6e5-9a29-448b-8d76-d625ac23ee78</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/liamh"&gt;Liam Hastings&lt;/a&gt;&amp;nbsp;That&amp;#39;s great to know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getBean parameters not behaving the way I would expect.</title><link>https://sugarclub.sugarcrm.com/thread/33183?ContentTypeID=1</link><pubDate>Sat, 28 Jun 2025 22:11:58 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:95b8fe7f-af11-4953-8dfd-8ea2a16c4b89</guid><dc:creator>Liam Hastings</dc:creator><description>&lt;p&gt;Although the docblock above Link2::getBeans says `order_by` the actual key you need it `orderby`, it&amp;#39;s been&amp;nbsp;showing the incorrect value in the docblock for a while. Not that you need to hear as you have the bean as this approach is less lines, but an alternative is also using SugarQuery should you need to fallback to write your own queries in a database abstract method. But anyway you should fine using `orderby` works as you desire.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>