define variable tenant as ITenant no-undo.
define variable domain as IDomain no-undo. tenant = service:GetTenant("ABC") domain = service:NewDomain("ABCDomain"). domain:Description = "Domain for the ABC company"). tenant:Domains:Add(domain). service:UpdateTenant(tenant). |