define variable tenant as ITenant no-undo.
tenant = service:NewTenant("Andersen"). /* Set properties and optionally add elements to collections */ . . . service:CreateTenant(tenant). . . . tenant = service:GetTenant("Acme"). /* Set properties and/or add/delete domain(s) */ . . . service:UpdateTenant(tenant). . . . service:DeleteTenant("Andersen"). |
define variable tenantSet as ITenantSet no-undo.
define variable tenant as ITenant no-undo. tenantSet = service:GetTenants(). tenant = service:newTenant("Andersen"). /* Set properties and optionally add elements to collections */ . . . tenantSet:Add(tenant). tenant = tenantSet:Find("Johnson") tenant:Description = "Johnson is a paying customer.". tenant = tenantSet:Find("Smith"). tenantSet:Remove(tenant). service:UpdateTenants(tenantSet). |