Salesforce File

Provides file upload and download for Salesforce.

Revision History

3.0.0.50 Initial Release

4.0.1.10 Bumped API version to default to v55.0 and added property to Connection to allow it to be overridden.

4.0.1.11 Bumped API version to default to v59.0

4.1.0.0 Breaking update: added OAuth authentication.

4.1.0.1 Added legacy properties.

4.1.0.2 Fixed lock not being released.

See Upgrading Nodes for instructions on how to safely upgrade connections.

Properties

Connection

Type: Connection Input
The Connection Property

Url
Type: String
An optional URL for the Salesforce instance. This property should only be necessary for Sandbox environments.

ConsumerKey
Type: String
The App Consumer Key (See Creating a Connection below)

ConsumerSecret
Type: Password
The App Consumer Secret (See Creating a Connection below)

Scope
Type: String
The list of space-delimited OAuth scopes required for authentication. The following scopes are required and set by default: full refresh_token offline_access.

AccessToken
Type: Password
A short-lived credential issued by the authorization server that grants the client application permission to access specific resources on behalf of a user. The AccessToken will be automatically populated once the account authentication process is complete.

RefreshToken
Type: Password
A long-lived credential used to obtain a new access token without requiring the user to re-authenticate. The RefreshToken will be automatically populated once the account authentication process is complete.

InstanceUrl
Type: String
The base URL that identifies the specific Salesforce instance (server cluster) your organization is hosted on. The InstanceUrl will be automatically populated once the account authentication process is complete.

Username - Legacy
Type: String
This property is only required if there are legacy nodes using the connection.
The Salesforce user username.

Password - Legacy
Type: Password
This property is only required if there are legacy nodes using the connection.
The Salesforce user password.

SecurityToken - Legacy
Type: Password
This property is only required if there are legacy nodes using the connection.
The Salesforce account security token.

DontInterleaveRequestsInResponse
Type: Boolean
Left blank for this Node.

ApiVersion
Type: String
The version of the API to use. If left blank, defaults to the current version for the Node.

Action

Type: List Input

Upload - upload a file to Salesforce. FileName must be specified including the file extension.
DownloadAsString - download a text file from Salesforce. e.g. txt, csv, json, xml, etc.
DownloadAsBinary - download a binary file from Salesforce. e.g. xlsx, pdf, png, etc.

FileData

Type: Object InputOutput
When uploading a file, provides the content of the file to be uploaded. When downloading a file, returns the content of the file.

FileName

Type: String Input
Where Action is Upload, the file name should be the name of the file including the file extension.

Where the Action is Download, the ID of the file must be specified. This will retrieve the first version of the file. A custom path could also be supplied if a specific file version is required: /services/data/v45.0/connect/files/0694K000000XoDYQA0/content?versionNumber=1

Response

Type: Xml Input
Returns additional response information when a file is uploaded.

Remarks

Use this Node in conjunction with the primary Salesforce Node to manage upload and download of file assets.

Creating a Connection

Refer to the Salesforce Node remarks for details on how to configure a connection.

See Also

Salesforce