CreateRestletSchema
Generates and stores the schema definition for a specified NetSuite RESTlet, facilitating API integration.
Input
| Name | Type | Description |
| TableName | String | The name of the RESTlet schema to create. |
| Description | String | A description of the table schema to save. |
| SearchId | String | Id of the search to use. This is the Id as displayed in the NetSuite UI, such as customsearch123. |
| ScriptId | String | ScriptId of the RESTlet to create a schema for. |
| DeploymentNum | String | The deployment number of the RESTlet schema to execute. Typically this will be 1 unless a different deployment is required.
The default value is 1. |
| UseLabels | String | A boolean indicating if labels should be used for column names.
The default value is true. |
| FlattenSelects | String | A boolean indicating if select response types should be flattened if possible. NetSuite will return any structed data as a select including record references. This should be set to false if multiselect columns must be retrieved. Those are not supported by this option.
The default value is true. |
Result Set Columns
| Name | Type | Description |
| FileData | String | The generated file data if the Location input is not specified. |
| Result | String | Returns Success or Failure. |
| SchemaFile | String | The generated schema file. |
| Columns | String | The number of columns found. |