POST

Workdiary.List

List Work diary rows for the selected month. Same columns as dashboard/workdiary: Id, Name, Done mission, SALES, call, Day, Total Hours, EXTRA HOURS, % FROM MONTH, SALARY. Same as team_members(0,2): all non-deleted team members in the org (active and inactive).

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

  • Returns Workdiary rows as JSON.
  • Supports the documented filters and paging fields.
  • List responses are capped at 25 rows per call.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Requires module_sidebarmenu_workdiary (missing key = allowed, same as dashboard check_roles_modules).
  • Does not replace TeamHours.* (header clock) or WorkingTime.* (customer time_counter).
  • Click a name → Workdiary.Get. Cog icon → Workdiary.Settings.Get / Save.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
sm_date
post
string2026-08Month as YYYY-MM or "August 2026".
search_data
post
stringjohnFilter members by name. Alias: search.
data_id_change
post
json[14,211]Optional member id list. Alias: user_ids, team_member_id.
colomn_name
post
stringnameSort column. Alias: order_by.
asc_desc
post
stringASCASC or DESC.
limit
post
int25Maximum rows to return. Values above 25 are capped.

Authentication

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

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Workdiary.List",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "sm_date": "2026-08"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Workdiary.List",
    "url_domain": "https:\/\/{domain}\/app\/Workdiary.List"
}

Endpoint

POST /app/Workdiary.List
POST https://{user}.bull36.com/app/Workdiary.List
POST https://{domain}/app/Workdiary.List

Sample Output

{
    "success": 1,
    "count": 2,
    "month": "2026-08",
    "data": [
        {
            "id": 14,
            "name": "user",
            "done_mission": 3,
            "sales": 1,
            "call": 5,
            "day": 12,
            "total_hours": "80:30",
            "extra_hours": 0,
            "percent_from_month": "44%",
            "salary": "25000"
        }
    ]
}

Count Only

Use the matching count route with the same filters when the UI only needs total rows for paging.

{
    "url": "\/app\/Workdiary.Count",
    "url_user": "https:\/\/{user}.bull36.com\/app\/Workdiary.Count",
    "url_domain": "https:\/\/{domain}\/app\/Workdiary.Count",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "sm_date": "2026-08"
    },
    "sample_output": {
        "success": 1,
        "count": 123
    },
    "notes": {
        "count": "Use the matching count route when available, or count returned rows.",
        "max_limit": 25
    }
}

Count JavaScript

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('sm_date', '2026-08');

const res = await fetch('https://{domain}/app/Workdiary.Count', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data.count);

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ sm_date: '2026-08' });
const res = await fetch('/app/Workdiary.List', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "You have no permission to open Work diary"
}