Task Dynamics CRM - Delete Attachments
The Dynamics CRM - Delete attachment Task deletes the attachments of a record in Dynamics CRM whose file names match a filter, using a Dynamics CRM Connection.

The Task deletes the note attachments and e-mail (activity) attachments of the record whose file names match Filter. The filter is matched anywhere in the file name, not against the whole name, so ".pdf" also matches a file named "report.pdf.txt". The match is case-sensitive, so ".pdf" does not match "REPORT.PDF". The default, "*", deletes every attachment of the record. VisualCron cannot undo the deletion.
The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.
Delete attachment 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
- Entity name: the logical name of the entity (the record type), for example
accountorcontact. Click Fill to list the entities of the Dynamics CRM instance - Entity ID: the ID of the record. Select an Entity name first, then click Fill to list the records of that entity
- Filter: the file name mask of the attachments to delete, "*" by default.
*matches any characters and?matches one character
Variables are not resolved in Entity name and Entity ID.
Output and errors
The output has the file name of each deleted attachment, 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.