<?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 send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/discussions/f/general/13497/how-to-send-a-news-post-with-a-count-of-ids-of-new-contacts-added-today</link><description>Hi, 
 This will be a simple feed which calculates the number of contacts we have added to the database today. It will look something like: 
 &amp;quot;Today we have added [Total number of contacts today]&amp;quot; 
 
 1. I have a Data Store, and a form that adds new contacts</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/thread/61256?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 16:40:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4eb4bdd6-ca03-4a9e-950d-412d2fae84c7</guid><dc:creator>harrisont606</dc:creator><description>&lt;p&gt;I highly recommend you have created by, updated by, created date, and updated date fields for every table in your DB. Requirements like this will come up frequently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/thread/61246?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 15:05:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:095dcc22-1053-40be-8370-6a02950e19e1</guid><dc:creator>erics171</dc:creator><description>It is to find the number of created today. However, I don&amp;#39;t have a dateSubmitted column in the data. I&amp;#39;ve resorted to total for now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/thread/61238?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 14:35:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a0f63da-332c-4804-887f-2fcda01e949b</guid><dc:creator>omere0001</dc:creator><description>Hi Eric,&lt;br /&gt;
&lt;br /&gt;
Are trying to find the total number of contacts that were created throughout the entire day, or just the number of contacts created for that specific process instance?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/thread/61237?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 14:31:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4e9a0e7-5e60-4263-9631-7cd677262a01</guid><dc:creator>harrisont606</dc:creator><description>Hi, for your query, you can do a query to the table with the appropriate date filters and a paging info of (1,0). Then get the total count. It is important to have your paging info as (1,0), otherwise you will pull back data when all you need is the count&lt;br /&gt;
&lt;br /&gt;
a!queryEntity(&lt;br /&gt;
  entity: cons!YOUR_DATA_STORE,&lt;br /&gt;
  query: a!query(&lt;br /&gt;
    &lt;br /&gt;
    pagingInfo: a!pagingInfo(&lt;br /&gt;
      startIndex: 1,&lt;br /&gt;
      batchSize: 0&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
).totalCount&lt;br /&gt;
&lt;br /&gt;
Make sure to add a filter to only get ones for the appropriate date.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send a News post with a count of IDs of new contacts added today?</title><link>https://community.appian.com/thread/61236?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 14:31:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3030287e-b666-4930-8d2f-8258ef14d957</guid><dc:creator>Larry Nguyen</dc:creator><description>The database table that&amp;#39;s being written to for the new contacts can have a creation date column that is set automatically to CURDATE() or NOW().  Then for your news feed process you can have it have queryEntity rule grab the count for contacts with a create date of the current date and save that in a pv or acp and utilize that variable / parameter to display the count in the news post.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>