To download an attachment from Salesforce to a local file system, do the procedure in this topic.
Download Attachment Configuration Screen
How to Start
- On the Organizer,
do one of these:
- Do one of these:
- Add an activity:
- In the Process Builder, in the Activity Library,
open the Salesforce tab.
- On the Salesforce
tab,
drag the Download Attachment
activity onto your process.
- Change an activity:
- In your process, double-click your activity.
- On the Download Attachment Configuration screen, click Download Attachment .
Procedure
- On the Download Attachment Configuration screen, in the Salesforce field, select your Salesforce access token.
To create a new access token, click
Add Token . For more information, refer to
New Salesforce Access Token.
- Complete these fields
as necessary.
Field Name |
Definition |
Attachment ID
|
- Function:
- Specifies the ID for your attachment.
The attachment ID comes from Salesforce. It tracks a Salesforce attachment.
- Accepted Values:
- A valid attachment ID.
- Default Value:
- None
- Accepts Process Data Variables:
- Yes
|
Local Path
|
- Function:
- Specifies the location of the file system folder on the local computer where the activity does an action, such as uploading or downloading files.
This setting gives the source location for the files to be uploaded and the target location for the files to be downloaded.
- Accepted Values:
- A file path relative to the AgilePoint Server
application's root directory.
- Default Value:
- None
- Accepts Process Data Variables:
- Yes
- Example:
- If AgilePoint Server is installed at:
c:\Inetpub\wwwroot\AgilePointServer\
And, the file once downloaded is to be located at:
c:\Inetpub\wwwroot\AgilePointServer\files\MyFile.txt
Then, the LocalPath property must be set to the following value:
files
- If AgilePoint Server is installed at:
c:\Inetpub\wwwroot\AgilePointServer\
And, the file once downloaded is to be located at:
c:\Inetpub\wwwroot\AgilePointServer\files\temp\MyFile.txt
Then, the LocalPath property must be set to the following value:
files\temp
|
- (Optional) To store the attachment ID as a
process data variable, add the variable from the Process Variables screen to the
field Store the Response Attachment ID in Custom Attribute or Schema.