Clone Device Application

Description

This function is used to clone an existing Device Application and its payloads.

Syntax

Public Function CloneDeviceApplication(DeviceApplicationId As Integer, NewName As String, ChangelogComment As String) As Boolean

Parameters


DeviceApplicationID (Integer)

The id of the Device Application you wish to clone.

(Use Get Device Applications to get more information on existing Device Applications)

NewName (String)

The name of the new Device Appliccation

ChangelogComment  (String)

Comment you wish to be added to the changelog on the Device Application






Return value

Returns a boolean value. True if succeeded, false if not.

Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
Wscript.echo oCMS.SetDefaultManagementPoint("2") 

Dim iDeviceApplicationId		: iDeviceApplicationId = 153
Dim sNewName					: sNewName = "New cloned App"
Dim sChangelogComment       	: sChangelogComment = "Cloned App with sdk"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)

sNewName = "New cloned App2"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)