Create Profile in Business Unit
Description
Section titled “Description”This function is used to create a new profile in the instance Management Point, and link it to a Business Unit. The instance management point is selected with Set instance management point. The new profile is active, and its version is 1.
Syntax
Section titled “Syntax”Public Function CreateProfileInBusinessUnit(name As String, description As String, priority As Integer, changelogComment As String, businessUnitId As Integer) As BooleanParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the profile. |
| description | String | The description of the profile. Can be empty. |
| priority | Integer | The priority of the profile. |
| changelogComment | String | A comment that is added to the changelog entry of the profile. |
| businessUnitId | Integer | The numeric Id of the Business Unit. Get it with Get Business Units. |
Return value
Section titled “Return value”Returns a boolean value. True if succeeded, false if not. If no Business Unit with the specified Id is found, the function raises an error.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")oCMS.SetDatabaseSettings("ServerName", "CapaInstaller", False)Wscript.echo oCMS.SetInstanceManagementPoint("2")
Wscript.echo oCMS.CreateProfileInBusinessUnit("Exchange BU1", "", 350, "New profile from the sdk", 1)