Salesforce Download

Overview

The Salesforce Download Snap downloads a file attached to a Salesforce object record by passing an Attachment ID or Content Data ID.

Note: To use newer Salesforce objects, use the latest API versions where those objects are available.


Supported Accounts

Prerequisites

  • A valid account with the required permissions.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

A stream of documents which supply values to evaluate the ID expression.

Output

This Snap has exactly one document output view.

Document data with a byte array value for the content key and also with a ContentType key-value pair.

Learn more about Error handling.

Examples

Download a Document from Salesforce and Converting into Binary Format: Download an attachment and convert it to binary.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: Salesforce Download

Service Version*

String/Suggestion
Specify the version number associated with the Salesforce service that you want to connect to. Alternatively, click the Suggestion icon to fetch the list of versions and select the desired version.

Default value: 52.0

Example: 52.0

File Type*

String/Expression/ Suggestion
Specify the type of file you want to download. Alternatively, click the Suggestion icon to fetch the list of associated files.
Note: You can also specify an expression that will be evaluated into an attachment ID or content data ID, from each input document. The ID is found at the end of the URL of the file.

The available options are:

  • Attachment: Downloads the file as an attachment.
  • Content Version: Downloads the version of the content.
  • Document: Downloads the file as a document.

Default value: Attachment

Example: Document

ID*

String/Expression
Specify the ID of the object that you want to download.

Default value: N/A

Example: $id

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.

Troubleshooting

Error Cause Resolution
404 Error: The requested resource could not be found. The ID field does not exist or is not accessible. The input data should be valid. Check if your input data is valid.