GET getRecordFolderContents
GET getRecordFolderContents
Method Description | This method gets all files and folders inside a specific record folder. It can also retrieve files and folders from the first level of sub-folders. |
Returns | |
Limitations | TBD |
Usage | For notes on how to authenticate see NetSuite documentation. General usage notes see: File Sync REST API |
Since | FileSync 0.6.0 |
Request Parameters
Parameter | Type | Required | Description | Since |
---|---|---|---|---|
| string | required | Static value that has to equal getRecordFolderContents | 0.6.0 |
| string | required | Static value that has to equal customscript_b4cd_fileapi_rl | 0.6.0 |
| string | required | Static value that has to equal customdeploy_b4cd_fileapi_rl | 0.6.0 |
| integer | required | Internal ID of the FileSync Record Type Configuration record (customrecord_b4cd_record_type_config). | 0.6.0 |
| integer | required | The internal ID of the record in NetSuite which we are finding associated files for. | 0.6.0 |
| boolean | optional | Set the value to true to include sub-folder contents in the result. | 0.6.0 |
Returns: DirectoryItem
Property | Type | Description | Since |
---|---|---|---|
| string | The file or folder name | 0.6.0 |
| string | The unique ID of the file or folder as assigned by the file hosting service. | 0.6.0 |
| string | Possible Values: "file", "folder" | 0.6.0 |
| integer | File size in bytes. | 0.6.0 |
| string | The URI used to access the file or folder via the API. | 0.6.0 |
| string | The relative file or folder path on the file hosting service starting from the base directory. | 0.6.0 |
| string | The user-navigable URI for the folder or file on the file hosting platform. This can be used to construct hyperlinks for users to reach the file or folder externally. | 0.6.0 |
Errors
Error Code | Details |
---|---|
| A required argument is missing or undefined. |
| Multiple Record Type Configurations were found for the specified record type. Use the recordTypeConfigId parameter instead of the recordType parameter. |
Request Query Parameters Example
{ script: "customscript_b4cd_fileapi_rl", deploy: "customdeploy_b4cd_fileapi_rl", action: "getRecordFolderContents", recordTypConfigId: 3, recordId: 20703, includeSubFolders: true }