Skip to main content
Skip table of contents

Attachment Download

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

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

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

Example Script w/Param

XML
<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>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.