<?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>How to get the No. of documents created last day</title><link>https://community.appian.com/discussions/f/general/25916/how-to-get-the-no-of-documents-created-last-day</link><description>I have requirement to get the no of documents created last day/yesterday in KC. 
 We have a function to get the number of documents present in KC : knowledgecenter(ri!folderId,&amp;quot;numberOfDocuments&amp;quot;) 
 Can anyone please how to approach. Thanks in advanc</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get the No. of documents created last day</title><link>https://community.appian.com/thread/101382?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 07:51:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39fa8b49-2536-435d-811d-2249a02f48b2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;An alternative approach&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!document: folder(
    cons!LSME_DOCUMENT_FOLDER,
    &amp;quot;documentChildren&amp;quot;
  ),
  sum(
    a!forEach(
      items: local!document,
      expression: todate(document(fv!item, &amp;quot;dateCreated&amp;quot;)) &amp;gt; today()-1,
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When converting a boolean value into an integer, it becomes 0 for false and 1 for true. We can use that to calculate the sum of true values in a boolean list.&lt;/p&gt;
&lt;p&gt;BTW, a comparison always evaluates to a boolean. Putting it into an if() will not make this a more elegant implementation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the No. of documents created last day</title><link>https://community.appian.com/thread/101361?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 04:59:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eeeb0fce-f8dc-406b-805b-f8b79f2d9430</guid><dc:creator>p2005</dc:creator><description>&lt;p&gt;Thank you Prafuls0004. This solves my query&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the No. of documents created last day</title><link>https://community.appian.com/thread/101323?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 11:04:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f3f94ec-f4d8-4942-bf95-fecbfbef1663</guid><dc:creator>Praful Singhal</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!document: folder(&lt;br /&gt; cons!LSME_DOCUMENT_FOLDER,&lt;br /&gt; &amp;quot;documentChildren&amp;quot;&lt;br /&gt; ),&lt;br /&gt; local!dateCreated: a!forEach(&lt;br /&gt; items: local!document,&lt;br /&gt; expression: if(&lt;br /&gt; todate(document(fv!item, &amp;quot;dateCreated&amp;quot;)) &amp;gt; today()-1,&lt;br /&gt; true(),&lt;br /&gt; false()&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; length(&lt;br /&gt; remove(&lt;br /&gt; local!dateCreated,&lt;br /&gt; wherecontains(false(), local!dateCreated)&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>