define variable tenant as ITenant no-undo.
define variable tenantgroup as ITenantGroup no-undo. assign tenant = service:GetTenant("ACME") tenantgroup = service:GetTenantGroup("AcmeCustomer") tenant:TenantGroups:Add(tenantgroup) tenantgroup = service:GetTenantGroup("AcmeOrder") tenant:TenantGroups:Add(tenantgroup). service:UpdateTenantGroup(tenantgroup). |