define variable group as ITenantGroup no-undo.
group = service:NewTenantGroup("CustGroup"). /* Set properties and optionally add elements to collections */ . . . service:CreateTenantGroup(group). . . . group = service:GetTenantGroup ("ACMECustGroup"). /* Set properties and/or add/delete domain(s) */ . . . service:UpdateTenantGroup(group). . . . service:DeleteTenantGroup("CustGroup"). |
define variable groupSet as ITenantGroupSet no-undo.
define variable group as ITenantGroup no-undo. groupSet = service:GetTenants(). group = service:NewTenantGroup("ABCGroup"). /* Set properties and optionally add elements to collections */ . . . groupSet:Add(group). group = groupSet:Find("ABCCustomer") group:Description = "ABCCustomer group.". group = groupSet:Find("ABCOrder"). groupSet:Remove(group). service:UpdateTenantGroups(groupSet). |