Variable: Tenant System Variables & Lists

Automation scripts for sapio365 can use the following variables and lists.


Initial domain name
{%O365Tenant_InitialDomainName%}
Default domain name
{%O365Tenant_DefaultDomainName%
XML

Detailed Description

List

O365Tenant_AllDomains - list of all domains that can be used in

Loop: each tenant is refrenced by {%O365Tenant_DomainName%}

UserInput: use the list of tenants in a drop down combo using O365Tenant_DomainName as the combo list value;

Example Script

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ytriaAutomation Console="true" KeepAlive="True">
	<SetVar verif="Verifions que les variables fonctionnent"/>
	<echo value="V: {%verif%}"/>
	<echo value="Initial domain: {%O365Tenant_InitialDomainName%}"/>
	<echo value="Default domain: {%O365Tenant_DefaultDomainName%}"/>
	<loop list="O365Tenant_AllDomains">
		<ExecuteListAction/>
		<echo value="Domain {%LoopIndex%}/{%listSIZE%}: {%O365Tenant_DomainName%}"/>
	</loop>
	<UserInput Title="My tenant is bigger than yours">
			<Variable name="MyDomain" Label="My Domain" Tooltip="Tenants from your organization" Type="List">
				<ListItem ListName="O365Tenant_AllDomains" value="O365Tenant_DomainName"/>
			</Variable>
	</UserInput>
	<echo value="Selected domain: {%MyDomain%}"/>
</ytriaAutomation>
XML