SelectedAttachmentDownload: Download Attachment

Tag: SelectedAttachmentDownload 

The SelectedAttachmentDownload function downloads the attached files of all selected items to your computer.


XML
<SelectedAttachmentDownload/>

w/Params:

XML
<SelectedAttachmentDownload FilePath="D:\temp-exports" IfFileExists="Skip"/>

Tag Attributes

Attributes

Attribute Value

KeepAlive

TRUE / FALSE

FilePath

Download target folder path, default to documents

IfFileExists

CreateNew / Overwrite / Skip

Hierarchy

TRUE / FALSE

OwnerName

TRUE / FALSE

OpenFolderAfterDownload

TRUE / FALSE

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.

Detailed Description

Messages:

download-attachments-1

Events & Posts:

download-attachments-2

Example Script

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

Example Script w/Param

XML
<LoadSession Name="admin@M365x103211.onmicrosoft.com" Type="advanced"/>
	<ShowMyDataMail>
		<Select Lines="ByValue">
			<SetParam ColumnID="subject" Value="Documents attached"/>
		</Select>
		<SelectedAttachmentLoadInfo/>
		<SelectedAttachmentDownload FilePath="D:\temp-exports" IfFileExists="Skip"/>
	</ShowMyDataMail>