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
- Employee Use Cases
- Use Case for Adding a Supervisor to an Employee
- Use Case for Adding Employee Address
- Use Case for Adding Subscriptions to an Employee
- Use Case for Creating an Expense Report from an Employee Record
- Use Case for Retrieving Permissions Assigned to a Role
- Use Case for Finding IDs of Roles Assigned to an Employee
- Use Case for Finding the Name of a Role