Tag: SelectedAttachmentDownload 

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


<SelectedAttachmentDownload/>
XML

w/Params:

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

Tag Attributes

AttributesAttribute Value
KeepAliveTRUE / FALSE
FilePathDownload target folder path, default to documents
IfFileExistsCreateNew / Overwrite / Skip
HierarchyTRUE / FALSE
OwnerNameTRUE / FALSE

Detailed Description

Messages:

download-attachments-1


Events & Posts:

download-attachments-2

Example Script

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

Example Script w/Param

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