FieldEx Developer
developer notes

Get All Tasks by Customer

TaskGetAllByCustomer API allows you to retrieve all existing Task records by Customer records.

Method Endpoint
GET {{endpoint}}/api/ext/tasks/by-customer

Headers

Key Value
Content-Type application/json
Authorization Bearer{{token}}

Filter Fields

Parameter Type Example Length Required Description
page Number 0 true Specifies the page number
perPage Number 25 true Specifies the number of records per page
startFrom Number 0 true Specifies the start point of the column being sorted
columnName String id true Specifies the name of the column being sorted
sortOrder String desc/asc true Specifies the order in which the column is being sorted
search String a true Specifies the search query
origin String a true Origin information for filtering
customerId Number 1 true Specifies the customer ID being filtered

API Query Example

Method API Call
GET api/ext/tasks/by-customer?
customerId&startFrom=0&perPage=
25&columnName=task.id&sortOrder
=desc&search=&origin

Example Response

//status - 200
{
    "total": 9316,
    "count": 25
    "data": [
        {
            "id": 9335,
            "taskName": "TestNov27",
            "startDateTime": "2023-11-27T06:00:00Z",
            "endDateTime": "2023-11-27T07:00:00Z",
            "location": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia",
    "assignedBy": {
        "id": 3,
        "login": "load.tech1@trial.custella.com",
        "firstName": "Technician",
        "lastName": "User",
        "imageUrl": null,
        "email": "preeti@fieldex.com",
        "fullName": "Technician User"
    },
    "assignedTo": {
        "id": 3,
        "login": "load.tech1@trial.custella.com",
        "firstName": "Technician",
        "lastName": "User",
        "imageUrl": null,
        "email": "preeti@fieldex.com",
        "fullName": "Technician User"
    },
    "team": {
        "id": 2,
        "teamName": "QA"
    },
    "taskStatus": "OPEN",
    "taskOwner": null,
    "assignStatus": null,
    "assignedUsersList": null

        },
        {
        "id": 9335,
        "taskName": "TestNov27",
        "startDateTime": "2023-11-27T06:00:00Z",
        "endDateTime": "2023-11-27T07:00:00Z",
        "location": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia",
        "assignedBy": {
            "id": 3,
            "login": "load.tech1@trial.custella.com",
            "firstName": "Technician",
            "lastName": "User",
            "imageUrl": null,
            "email": "preeti@fieldex.com",
            "fullName": "Technician User"
        },
        "assignedTo": {
            "id": 3,
            "login": "load.tech1@trial.custella.com",
            "firstName": "Technician",
            "lastName": "User",
            "imageUrl": null,
            "email": "preeti@fieldex.com",
            "fullName": "Technician User"
        },
        "team": {
            "id": 2,
            "teamName": "QA"
        },
        "taskStatus": "OPEN",
        "taskOwner": null,
        "assignStatus": null,
        "assignedUsersList": null
}
        },
        {
           "id": 9333,
            "taskName": "Fixing A",
            "startDateTime": "2023-12-01T01:00:06Z",
            "endDateTime": "2023-12-01T01:30:06Z",
            "location": null,

  "assignedBy": {
                "id": 2033,
               "login": "arfanautmachine@custella.com",
        
"firstName": "arfan machine",
"lastName": "machine1",
"imageUrl": null,
"email" "arfan@custella.com",
"fullName": "arfan machine machine1"
            },
            "assignedTo": {
                "id": 82,
                "login": "narayansp@custella.com",
                "firstName": "narayan ms sp",
                "lastName": "sp",
                "imageUrl": null,
                "email": "arfan@custella.com",
                "fullName": "narayan ms sp sp"
                    },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
          "id": 9332,
          "taskName": "Fixing A",
          "startDateTime": "2023-12-01T01:00:06Z",
          "endDateTime": "2023-12-01T01:30:06Z",
          "location": null,
          "assignedBy": {
                "id": 203,
                "login": "arfanautmachine@custella.com",
                "firstName": "arfan machine",
                "lastName": "machine1",
                "imageUrl": null,
                "email": "arfan@custella.com",
                "fullName": "arfan machine machine1"
           },
            "assignedTo": {
                "id": 82,
                "login": "narayansp@custella.com",
                "firstName": "narayan ms sp",
                "lastName": "sp",
                "imageUrl": null,
                "email": "arfan@custella.com",
                "fullName": "narayan ms sp sp"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9331,
            "taskName": "JO-035397",
            "startDateTime": "2023-11-23T06:01:00Z",
            "endDateTime": "2023-11-23T07:01:00Z",
            "location": "",
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9329,
            "taskName": "test google calendar",
            "startDateTime": "2023-11-22T05:30:00Z",
            "endDateTime": "2023-11-22T06:30:00Z",
            "location": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia",
            "assignedBy": {
                "id": 264,
                "login": "user105@aut.custella.com",
                "firstName": "User 105",
                "lastName": "MS",
                "imageUrl": null,
                "email": "fighthamsters@gmail.com",
                "fullName": "User 105 MS"
            },
            "assignedTo": {
                "id": 264,
                "login": "user105@aut.custella.com",
                "firstName": "User 105",
                "lastName": "MS",
                "imageUrl": null,
                "email": "fighthamsters@gmail.com",
                "fullName": "User 105 MS"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9328,
            "taskName": "Fixing B",
            "startDateTime": "2023-11-28T01:00:05Z",
            "endDateTime": "2023-11-28T01:30:05Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9327,
            "taskName": "google integration",
            "startDateTime": "2023-11-20T05:30:00Z",
            "endDateTime": "2023-11-20T06:30:00Z",
            "location": "Kuala Lumpur International Airport, Kuala Lumpur International Airport, Sepang, Selangor, 64000, Malaysia",
            "assignedBy": {
                "id": 264,
                "login": "user105@aut.custella.com",
                "firstName": "User 105",
                "lastName": "MS",
                "imageUrl": null,
                "email": "fighthamsters@gmail.com",
                "fullName": "User 105 MS"
            },
            "assignedTo": {
                "id": 264,
                "login": "user105@aut.custella.com",
                "firstName": "User 105",
                "lastName": "MS",
                "imageUrl": null,
                "email": "fighthamsters@gmail.com",
                "fullName": "User 105 MS"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9326,
            "taskName": "task anis",
            "startDateTime": "2023-11-20T05:30:00Z",
            "endDateTime": "2023-11-20T06:30:00Z",
            "location": "cusBillingStreetValue, cusBillingCityValue, cusBillingStateValue, cusBillingPostcodeValue, Afghanistan",
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9325,
            "taskName": "Fixing A",
            "startDateTime": "2023-11-25T01:00:06Z",
            "endDateTime": "2023-11-25T01:30:06Z",
            "location": null,
            "assignedBy": {
                "id": 203,
                "login": "arfanautmachine@custella.com",
                "firstName": "arfan machine",
                "lastName": "machine1",
                "imageUrl": null,
                "email": "arfan@custella.com",
                "fullName": "arfan machine machine1"
            },
            "assignedTo": {
                "id": 82,
                "login": "narayansp@custella.com",
                "firstName": "narayan ms sp",
                "lastName": "sp",
                "imageUrl": null,
                "email": "arfan@custella.com",
                "fullName": "narayan ms sp sp"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9324,
            "taskName": "Petiole Task Large",
            "startDateTime": "2023-11-17T02:05:39Z",
            "endDateTime": "2023-11-17T02:35:39Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9323,
            "taskName": "Fixing B",
            "startDateTime": "2023-11-23T01:00:05Z",
            "endDateTime": "2023-11-23T01:30:05Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9322,
            "taskName": "arfan task of JO arfan do not delete",
            "startDateTime": "2023-11-16T00:13:09Z",
            "endDateTime": "2023-11-16T00:43:09Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9321,
            "taskName": "arfan do not delete",
            "startDateTime": "2023-11-16T12:16:09Z",
            "endDateTime": "2023-11-16T12:46:09Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9320,
            "taskName": "Color palm",
            "startDateTime": "2023-11-18T23:08:22Z",
            "endDateTime": "2023-11-18T23:38:22Z",
            "location": null,
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": {
                "id": 6,
                "teamName": "Team Excell"
            },
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9319,
            "taskName": "Tanam Anak Benih",
            "startDateTime": "2023-11-18T06:43:12Z",
            "endDateTime": "2023-11-18T07:13:12Z",
            "location": null,
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9318,
            "taskName": "Color palm",
            "startDateTime": "2023-11-18T23:08:22Z",
            "endDateTime": "2023-11-18T23:38:22Z",
            "location": null,
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": {
                "id": 6,
                "teamName": "Team Excell"
            },
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9317,
            "taskName": "Tanam Anak Benih",
            "startDateTime": "2023-11-18T06:43:12Z",
            "endDateTime": "2023-11-18T07:13:12Z",
            "location": null,
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9316,
            "taskName": "Color palm",
            "startDateTime": "2023-11-18T23:08:22Z",
            "endDateTime": "2023-11-18T23:38:22Z",
            "location": null,
            "assignedBy": {
                "id": 3,
                "login": "load.tech1@trial.custella.com",
                "firstName": "Technician",
                "lastName": "User",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Technician User"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": {
                "id": 6,
                "teamName": "Team Excell"
            },
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9315,
            "taskName": "arfan do not delete",
            "startDateTime": "2023-11-16T12:16:09Z",
            "endDateTime": "2023-11-16T12:46:09Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9314,
            "taskName": "arfan do not delete",
            "startDateTime": "2023-11-16T12:16:09Z",
            "endDateTime": "2023-11-16T12:46:09Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9313,
            "taskName": "Tanam Anak Benih",
            "startDateTime": "2023-11-17T06:43:12Z",
            "endDateTime": "2023-11-17T07:13:12Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9312,
            "taskName": "Color palm",
            "startDateTime": "2023-11-17T23:08:22Z",
            "endDateTime": "2023-11-17T23:38:22Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": {
                "id": 6,
                "teamName": "Team Excell"
            },
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9311,
            "taskName": "Tanam Anak Benih",
            "startDateTime": "2023-11-17T06:43:12Z",
            "endDateTime": "2023-11-17T07:13:12Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": null,
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        },
        {
            "id": 9310,
            "taskName": "Color palm",
            "startDateTime": "2023-11-17T23:08:22Z",
            "endDateTime": "2023-11-17T23:38:22Z",
            "location": null,
            "assignedBy": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "assignedTo": {
                "id": 1,
                "login": "load.test1@trial.custella.com",
                "firstName": "Test",
                "lastName": "User MS 123",
                "imageUrl": null,
                "email": "preeti@fieldex.com",
                "fullName": "Test User MS 123"
            },
            "team": {
                "id": 6,
                "teamName": "Team Excell"
            },
            "taskStatus": "OPEN",
            "taskOwner": null,
            "assignStatus": null,
            "assignedUsersList": null
        }  ],
    "recordsTotal": 9316,
    "recordsFiltered": 9316,
    "status": "HAS_DATA"}