AddWorkgroup

Creates a repository workgroup during run-time.

Syntax

AddWorkgroup( WorkgroupName, WorkgroupReference, EmailAddress, WorkgroupType, Enabled, Description, AccountCode, RelationWorkgroupRef );

Parameters

Parameter Name Type Description Optional? Default Value
WorkgroupName String The new workgroup's name. No n/a
WorkgroupReference String The new workgroups's reference. No n/a
EmailAddress String A valid email address to associate with the workgroup. No n/a
WorkgroupType Integer Defines the workgroup's type.
  • 1 - For a Client workgroup.
  • 2 - For an Intermediary workgroup.
  • 3 - For a Provider workgroup.
Yes 1
Enabled Boolean Determines if the workgroup will be enabled when created. Yes 1/True
Description String The description for the new workgroup. Yes ""
AccountCode String An account code to be assigned to the workgroup, if required. Yes ""
RelationWorkgroupRef String The reference to another workgroup that will be added to the Relationships tab of the new workgroup. Yes ""

Output

If successful, the function will return a value of True; otherwise, it will return False.