# How can I get a daily or weekly report emailed with numbers and stats for how my business is growing?

**URL:** <https://www.dolibarr.org/forum/t/how-can-i-get-a-daily-or-weekly-report-emailed-with-numbers-and-stats-for-how-my-business-is-growing/24500>\
**Category:** Using my Dolibarr\
**Tags:** v18, Question, Linux\
**Created:** [October 31, 2023, 9:44pm UTC](https://www.dolibarr.org/forum/t/how-can-i-get-a-daily-or-weekly-report-emailed-with-numbers-and-stats-for-how-my-business-is-growing/24500 "2023-10-31T21:44:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [October 31, 2023, 9:44pm UTC](https://www.dolibarr.org/forum/t/how-can-i-get-a-daily-or-weekly-report-emailed-with-numbers-and-stats-for-how-my-business-is-growing/24500/1 "2023-10-31T21:44:22Z")

</div>

How can I get a daily or weekly report emailed with numbers and stats for how my business is growing?

x New customers  
y New orders  
z New sales generated,  
…

I enabled such that I get an email for new validated proposals, but I get one for each, and they don’t say much, just:

Subject: [Ministry of Balboa] Automatic notification

"This event is the following:

Proposal [PR2310-0007](https://shop.balboaswing.dk/dolibarr/comm/propal/card.php?id=150&entity=1) has been validated."

which is not much and I have to go and check who was it, what was proposed, …

it would be nice to keep an eye on the development, especially because I don’t plan to use Dolibarr 8 hours a day, and there can be days where I don’t have a need to log in, but a daily email would allow me to know that I should log in.

JonB

---

<div class="post-metadata">

**Author:** ![nurfz](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/n/bbe5ce/32.png) [@nurfz](https://www.dolibarr.org/forum/u/nurfz)\
**Post date:** [November 2, 2023, 7:36pm UTC](https://www.dolibarr.org/forum/t/how-can-i-get-a-daily-or-weekly-report-emailed-with-numbers-and-stats-for-how-my-business-is-growing/24500/2 "2023-11-02T19:36:46Z")

</div>

I haven’t tried yet, but looks like Dolibarr has an REST API: [APIs and Hooks in Dolibarr](https://www.dolibarr.org/presentation-api.php)

Your wish to get an e-mail report seems to be relatively simple to script using the API.

Maybe just a (Linux) cronjob shell script that uses `curl` and `jq` and `wc -l` to count the lines of the respective JSON answers.

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [November 2, 2023, 8:19pm UTC](https://www.dolibarr.org/forum/t/how-can-i-get-a-daily-or-weekly-report-emailed-with-numbers-and-stats-for-how-my-business-is-growing/24500/3 "2023-11-02T20:19:11Z")

</div>

I used the API, and yeah, I could probably get that report somehow using the API, but it would be nicer if someone already made something that could be used.
