CreateOrg Event
The CreateOrg Event is triggered whenever a new organisation is created. A task attached to this event may be restricted to one or more types of organisation (e.g. ISV or Client) using the event filter.
Powershell Variables
The following variables are available to a Powershell script attached to this trigger:
- $Org - Describes the organisation being created including, if applicable, its parent organisations. This variable is of type OrgScriptObject.
Examples
$OrgType = $($Org.Template.Name)
$AdGroupName = $($Org.AdSecurityGroupName)
The parent organisation (e.g The parent ISV of a newly created client) can be accessed through the 'Parent' property:
$ParentOrgName = $($Org.Parent.Name)
Custom fields are supported through the 'Custom' property:
$MyCustomField = $($Org.Custom.MyCustomField)
Legacy Support
The following legacy variables are available to a Powershell script attached to this trigger - they are provided for backward compatability only and should not be used in new scripts:
Warning
These variables are obsolete and will not be supported in the future
$orgGroupName - The name of the AD Security Group associated with this organisation.
$orgOuName - The name of the AD OU associated with this organisation.
$orgUid - The GUID of the AD OU associated with this organisation.
$orgName - The name of this organisation.
$orgShortName - The short name of this organisation.