<?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>Best way to check if folder is empty</title><link>https://community.appian.com/discussions/f/general/11264/best-way-to-check-if-folder-is-empty</link><description>Hi, 
 The answer to this is probably really simple. 
 What would be the best way to check if a folder is empty if I know the folder ID? 
 
 Thanks in advance, 
 Gary</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Best way to check if folder is empty</title><link>https://community.appian.com/thread/49495?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 01:30:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80c2e21f-a177-48f6-9f92-f8eb9b281402</guid><dc:creator>garym</dc:creator><description>@ashokv - thanks, that worked nicely&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best way to check if folder is empty</title><link>https://community.appian.com/thread/49492?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 00:44:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96d621f9-9fc1-43cb-b215-00b91117b239</guid><dc:creator>ashokv</dc:creator><description>If you know the folder ID then you can use the folder function and check the property &amp;#39;numberOfDocuments&amp;#39;  ex: folder(ri!fid,&amp;quot;numberOfDocuments&amp;quot;)&lt;br /&gt;
If it returns 0, it should be empty folder&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>