ProjectService.duplicateProject Method
Duplicates the project with the given ID into a new project with the given name.
Parameters
- id
-
Type: String
The ID of the project to duplicate.
- newProjectName
-
Type: String
The name of the duplicated project.
- tenantId
-
Type: String
(optional)The tenant ID that we want to duplicate the project to.
- privilegeOption
-
Type: ProjectPrivilegeOption
The project permission option.
- treatNullTenantIdAsNoTenant
-
Type: Boolean
A flag used to indicate if an null tenant ID is to be treated a no tenant ID.
Return Value
Type: jQuery.Promise
Value: dundas.project.DuplicateProjectResult
A promise object that is resolved when the call is complete.
If successful, a dundas.project.DuplicateProjectResult object is returned with result of the operation.