tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2809-depth-of-getsubaccountsInfinite Kind: Discussion 2020-06-11T05:34:35Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/483765022020-06-02T09:57:51Z2020-06-02T09:57:51ZDepth of getSubAccounts()<div><p>Hi Max,</p>
<p>As you discovered, the parameter-less getSubAccounts() does only ever return immediate sub-accounts. The getSubAccounts with the filter parameter basically calls through to the AccountUtil.getAccountIterator(...) method. In general, I'd recommend using the AccountUtil.* static methods for querying accounts and account hierarchies. I think those make it a little more explicit what it is that is returned.</p>
<p>Thanks!</p>
<p>--<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="https://infinitekind.com">https://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/483765022020-06-02T10:02:31Z2020-06-02T10:02:31ZDepth of getSubAccounts()<div><p>I've also updated the documentation on getSubAccounts(). Thanks for the note!</p>
<p>--<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="https://infinitekind.com">https://infinitekind.com</a></p></div>Sean Reilly