Page tree
Skip to end of metadata
Go to start of metadata


Description

This function is used to create a new profile in the Default Managment Point, and link it to a Business Unit. A default point is selected with Set default management point.

Syntax

Public Function CreateProfileInBusinessUnit
(name As String, description As String, priority As Integer, changelogComment As String, businessUnitId As Integer) As Boolean

Parameters


Name (String)

Name of the new Profile

Description (String)

Description of the new Profile

Priority (Integer)

Priority of the Profile

ChangelogComment (String)

A comment that will be added to the changelog entry on the proifile.

BusinessUnitId (Integer)

The ID of the Business Unit. (Can be retrieved using the function GetBusinessUnits)



Return value

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

Example

VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") 
oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)
Wscript.echo oCMS.SetDefaultManagementPoint("2")
 
Wscript.echo oCMS.CreateProfileInBusinessUnit("Exchange BU1", "", 350, "New profile from the sdk", 1)
  • No labels