Use Case for Finding the Name of a Role

To find the name of a role, send a SuiteQL query with the role ID. Note that Prefer: transient is a required header parameter.

          POST {{REST_SERVICES}}/query/v1/suiteql?
{
    "q": "SELECT name FROM role where id = 7"
} 

        

The following is an example of the response:

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql"
        }
    ],
    "count": 1,
    "hasMore": false,
    "items": [
        {
            "links": [],
            "name": "A/P Clerk"
        }
    ],
    "offset": 0,
    "totalResults": 1
} 

        

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 Finding All Employee Records Under a Supervisor
Use Case for Retrieving Permissions Assigned to a Role
Use Case for Finding IDs of Roles Assigned to an Employee

General Notices