POST

Entries.Count

Return only the count of rows inside a selected entry tab. First call User.Basic and send the selected data.entries.list id as entry_id. customer_id is optional and filters rows for one customer.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Counts rows from the selected entry/tab only.
  • Returns count and total_record so list UIs can show pagination totals.

Push Service

No socket push is sent because this function only reads data.

Automation

No automation is run because this function only reads data.

Special Instructions

  • Use the same entry_id, customer_id, and search filters that you use for Entries.List.
  • If the selected entry uses customer linking, send entry_cust_id to count rows for one linked entry customer.
  • Use this route when the UI needs a total without loading row data.
  • Use EntriesSettings.Count only for counting tab definitions, not entry rows.

Required Parameters

NameTypeSampleExplanation
entry_id
post
int7Selected entry/tab id from User.Basic data.entries.list. tab_id is also accepted.

Optional Parameters

NameTypeSampleWhat it gives
customer_id
post
int123Counts rows linked to one customer when supplied.
entry_cust_id
post
int456Counts rows linked to one entry customer when the selected entry uses customer linking. entry_customer_id is also accepted.
search
post
stringdemoSearch text filter.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Entries.Count",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "entry_id": "7",
        "customer_id": "123"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Entries.Count",
    "url_domain": "https:\/\/{domain}\/app\/Entries.Count"
}

Endpoint

POST /app/Entries.Count
POST https://{user}.bull36.com/app/Entries.Count
POST https://{domain}/app/Entries.Count

Sample Output

{
    "success": 1,
    "entry_id": 7,
    "count": 3,
    "total_record": 3
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ entry_id: '7', customer_id: '123' });
const res = await fetch('/app/Entries.Count', { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body });
const data = await res.json();
console.log(data.count);

Error Example

{
    "success": 0,
    "message": "Missing required parameter: entry_id"
}