Forum Post: RE: How to Use Count Function

  • Thread starter Thread starter Laurent
  • Start date Start date
Status
Not open for further replies.
L

Laurent

Guest
If you want to send such numbers in an email template, the best way would be to use the rbv_api.getCount() API. You do it by: - Creating three views that get the list of employees created respectively yesterday, this week and this month (you can use the tokens TODAY - 1, WEEK, MONTH in the filter section) - In your email template, insert #EVAL [rbv_api.getCount(106933437);] instead of 20, 50 and 100 in your example. You will need to replace the ID with the View ID. This way, if someone decide to change the filter (e.g. only the employees of a particular division) you can do so easily by updating the views.

Continue reading...
 
Status
Not open for further replies.
Back
Top