SelectedDownloadAsEML: Download Message as EML

Tag: SelectedDownloadAsEML

The SelectedDownloadAsEML function automates the action of downloading selected messages in the grid as an EML file.


XML
<SelectedDownloadAsEML/>

Tag Attributes

Attributes

Attribute Value

Value Description

KeepAlive

TRUE / FALSE (default)

TRUE keeps the dialog open.

FilePath

Folder path

Destination folder. Defaults to the last folder used for a download, or Documents the first time.

IfFileExists

CreateNew / Overwrite / Skip

What to do when a file with the same name already exists. Defaults to the last choice made in this session, CreateNew at first.

Hierarchy

TRUE (default) / FALSE

Recreates the mail folder hierarchy in the destination folder.

OwnerName

TRUE (default) / FALSE

Puts the files in a folder named after the mailbox owner's display name.

OpenFolderAfterDownload

TRUE / FALSE (default) 

Opens the destination folder after the download.

CustomNamingAttributes

Semicolon-separated column unique IDs

Adds the values of these columns to the path and file name, replacing the columns set in the dialog. Unknown IDs are ignored.

http://www2.ytria.com/Dev/YtriaAut.nsf/83ad0ba5a6acd8498525848500812fba/491e41494f8028b3852584a10073ad16/Body/0.7BA?OpenElement&FieldElemFormat=gif

Example Script

XML
<ytriaAutomation Application="sapio365">
	<LoadSession Name="AllanD@M365x356371.onmicrosoft.com" Type="advanced"/>
	<ShowMyDataMail>
		<Select Lines="ByValue">
			<SetParam ColumnID="subject" Value="Documents attached"/>
		</Select>
		<SelectedDownloadAsEML/>
	</ShowMyDataMail>
</ytriaAutomation>

Example Script with Params

XML
<ytriaAutomation Application="sapio365">
	<LoadSession Name="admin@M365x103211.onmicrosoft.com" Type="advanced"/>
	<ShowMyDataMail>
		<Select Lines="ByValue">
			<SetParam ColumnID="subject" Value="Documents attached"/>
		</Select>
		<SelectedDownloadAsEML FilePath="D:\temp-exports" IfFileExists="Skip" CustomNamingAttributes="fromName;fromAddress"/>
	</ShowMyDataMail>
</ytriaAutomation>