Tag: SelectedDownloadAsEML
The SelectedDownloadAsEML function automates the action of downloading selected messages in the grid as an EML file.
<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. |
Example Script
<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
<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>