deleteFolder
deleteFolder(options)
Method Description | This function allows you to delete a folder in SharePoint. |
Supported Script Types | SuiteScript 2.1 |
Limitations | None |
Module | b4cd-file-api-lib.js |
Since | FileSync 0.5.2 |
Parameters
Note: The options
parameter is a JavaScript object.
Property | Type | Required | Description | Since |
---|---|---|---|---|
options.recordTypeConfigId | integer | required* | Internal ID of the FileSync Record Type Configuration record (customrecord_b4cd_record_type_config). *Optional - Can use options.connectionId as below | 0.5.2 |
| string | required* | The unique ID of the folder for which the content is being requested. This value is generally retrieved by making a call to the getRecordFolderContents or the getFolderContentsByPath method. *Optional - Can use options.folderUniquePath as below | 0.5.2 |
| string | optional | Server relative path of the folder in SharePoint | 0.5.2 |
Errors
Error Code | Details |
---|---|
| A required argument is missing or undefined. |
Example Usage
var params = { folderUniqueId:'d0b1d53c-079f-4497-aa8c-9892fae706b8'
recordTypeConfigId: 35
}
fileapi.deleteFolder(params)