CreateRestletSchema
Creates the schema for the RESTlet specified. Saves the schema at the location set by the Location connection property.
Input
Name | Type | Accepts Output Streams | Description |
TableName | String | False | The name of the RESTlet schema to create. |
Description | String | False | A description of the table schema to save. |
SearchId | String | False | Id of the search to use. This is the Id as displayed in the NetSuite UI, such as customsearch123. |
ScriptId | String | False | ScriptId of the RESTlet to create a schema for. |
DeploymentNum | String | False | 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 | False | A boolean indicating if labels should be used for column names.
The default value is true. |
FlattenSelects | String | False | 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. |
FileStream | String | True | An instance of an output stream where file data is written to. Only used if Location is not set. |
Result Set Columns
Name | Type | Description |
FileData | String | If the Location input is empty. |
Result | String | Returns Success or Failure. |
SchemaFile | String | The generated schema file. |
Columns | String | The number of columns found. |