Skip to main content

Task Dynamics CRM - Download Attachments​

The Dynamics CRM - Download attachment Task downloads the note attachments whose names match a file mask from Dynamics CRM to a folder, using a Dynamics CRM Connection.

Download attachment(s) tab with the Connection details, Destination folder with its folder button, and Source file mask with its Refresh button

warning

The Task writes each attachment's content as Dynamics CRM stores it, as Base64 text, so a downloaded file is not the original file and has to be decoded before it is used. A file with the same name in Destination folder is overwritten.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

Download attachment(s) tab​

  • Connection: in the Connection details group, the Dynamics CRM Connection to use; see Connection - Dynamics CRM. Click the Settings icon to open Manage Connections

In the Download settings group:

  • Destination folder: the folder to save the files in, on the computer that runs the VisualCron Server. Click the Folder icon to browse
  • Source file mask: the mask that the attachment names must match, "." by default. * matches any characters and ? matches one character, and case is ignored. With ".", attachments whose names have no dot are not downloaded. The mask is matched against the note attachments of every record that the Connection's user can read, not only one record. Type the mask: the Refresh button does not read the attachments through the selected Connection, so do not rely on the list it shows

Output and errors​

The output has the path of each downloaded file, one per line. When no attachment matches, the output is empty and the Task succeeds. When Dynamics CRM rejects the request, or the Connection cannot connect, the Task fails with the error that is returned.