LoadSession: load a sapio365 session

Tag: LoadSession

The LoadSession function automates the action of loading the sessions of selected users.

XML
<LoadSession Name="admin@contoso.onmicrosoft.com" Type="advanced"/>
image2023-6-22_9-4-34.png

Tag Attributes

Attributes

Attribute Values

Value Description

Name

session name - Required

session name (e.g. admin@yourdomain.com)
May also contain the role name with the separator "|~#~|" (e.g. user@yourdomain.com|~#~|550-OP Admin)

Type

Session type

advanced, app, elevated, partneradvanced, partnerelevated, role
Type or Role is required.

Role

when Type='role', the name of the role


CustomerTenantId

CustomerTenant Id

Required with Type partneradvanced or partnerelevated

Example Script

XML
<ytriaAutomation Application="sapio365">
	<LoadSession Name="admin@yourdomain.com" Type="advanced"/>
	<ShowMyDataMail>
		<Select Lines="ByValue">
			<SetParam ColumnID="senderName" Value="Alex Wilber"/>
		</Select>
		<SelectColumn ColumnID="toRecipientsAddresses"/>
		<ExplodeMultivalues ColumnID="toRecipientsAddresses"/>
		<SelectColumn ColumnID="receivedDateTime"/>
		<ExplodeDates/>
		<ExplodeTimes/>
		<Export>
			<SetParam Field="FileOutput" Value="ASCII"/>
			<SetParam Field="Mode" Value="Create"/>
			<SetParam Field="ExportType" Value="HTML"/>
			<SetParam Field="ChildrenOnly" Value="False"/>
			<SetParam Field="ExpandAllGroups" Value="False"/>
			<SetParam Field="OpenFileOnceGenerated" Value="True"/>
			<SetParam Field="SelectedRowsOnly" Value="True"/>
			<SetParam Field="ExcelSheetName" Value=""/>
			<SetParam Field="ExcelTemplate" Value=""/>
			<SetParam Field="FilePath" Value="AlexWilberMails-Exploded"/>
		</Export>
			<ImplodeAllDateTimes/>
			<ImplodeAllMultivalues/>
	</ShowMyDataMail>
	<LoadSession Name='admin@yourdomain.com' Type='partneradvanced' CustomerTenantId='d31e0000-61d0-4800-9000-6f80500000'/>
</ytriaAutomation>