CMISSetVersion
Sets the version type of the file that is uploaded.
Member of namespace
CMISClientSyntax
bool CMISSetVersion(string cmisVersion)
Parameters
- cmisVersion
- Type: string
Parameters
cmisSetVersion : The version of the uploaded document. It must be one of the following options: None, Major, Minor, CheckedOut. If this action is not called before the file upload, the None type is used.Smart parameters are supported.
Returns
Always returns True. If the specified type is invalid or if a CMIS connection is not established, the version type defaults to None.Level
All levels.Details
Call this action before the CMISUploadFile action to set the version type of the uploaded file. The support for versions depends on the target repository. Check your repository documentation to determine which version types it supports when you are using the CMIS interface. The supported types might also vary based on the specific version configuration settings of your repository. This action is optional. If this action is not called, then the version type of None is used for uploaded files.- Example:
CMISSetVersion("Major") CMISUploadFile("C:\MyDir\"MyFile.txt","MyFile.txt","/MyCMISDir","text/plain")