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

General Notices