Use Case for Finding All Employee Records Under a Supervisor

Use the GET command to fetch all employee records under a supervisor.

          GET {{REST_SERVICES}}/record/v1/employee/?q=supervisor EQUAL 13 

        

In the response body, you will see all the employee records under the supervisor.

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/employee/?q=supervisor+EQUAL+13"
        }
    ],
    "count": 2,
    "hasMore": false,
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/employee/1720"
                }
            ],
            "id": "1720"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/employee/1519"
                }
            ],
            "id": "1519"
        }
    ],
    "offset": 0,
    "totalResults": 2
} 

        

Related Topics

General Notices