# To know the number of emails used by each run user

**URL:** https://community.tago.io/t/to-know-the-number-of-emails-used-by-each-run-user/1570
**Category:** Analysis and Actions
**Created:** [April 12, 2024, 12:27pm UTC](https://community.tago.io/t/to-know-the-number-of-emails-used-by-each-run-user/1570 "2024-04-12T12:27:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![diseno10](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@diseno10](https://community.tago.io/u/diseno10)
#### Post date: [April 12, 2024, 12:27pm UTC](https://community.tago.io/t/to-know-the-number-of-emails-used-by-each-run-user/1570/1 "2024-04-12T12:27:52Z")

</div>

Good day,

I would like to know if there is any code for an analysis to be able to know the amount of emails sent by the run user.

Let me explain: each end user can send a csv through a widget, but I would like to limit the amount of emails that can be sent to be able to distribute the available emails among all end users.

I tried to use this code but it does not execute.

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/3/3c6b277f8f56d10650f7197635b3686f0cb06101.png)

![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/5/5968713a628b566f8a062d2567941e8bfb828c98.png)

Thank you very much.

---

<div class="post-metadata">

### Author: ![mateus.silva](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mateus.silva](https://community.tago.io/u/mateus.silva)
#### Post date: [April 15, 2024, 12:59pm UTC](https://community.tago.io/t/to-know-the-number-of-emails-used-by-each-run-user/1570/2 "2024-04-15T12:59:02Z")

</div>

Hi,

Your code seems to be correct, the error you received is because the profileID is incorrect.

To obtain your account’s profileID, follow these steps:

\* Go to your account, select **Profiles & Teams** from the list.

\* Now in your URL you can find the profile id, e.g:

\* [https://admin.tago.io/profile/PROFILEID?mine=true](https://admin.tago.io/profile/PROFILEID?mine=true)

\* Copy the PROFILEID of URL.

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/5/5e41ed24e73bedda04b4af0470fb0f89dfde9149.jpeg)
