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


Description

This function is used to create assign an existing Profile to a Business Unit.

Syntax

Public Function AssignProfileToBusinessUnit
(profileID As Integer, businessUnitName As String, changelogComment As String) As Boolean

Parameters


ProfileId(Integer)

The ID of the profile

BusinessUnitName (String)

The name of the Business Unit

ChangelogComment (String)

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


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.AssignProfileToBusinessUnit(28, "Skanderborg", "Added profile to BU from SDK")