Salesforce Download file attachment action
- 최종 업데이트2025/09/24
Salesforce Download file attachment action
Use the Salesforce Download file attachment action to download a file from a record in Salesforce instance.
전제 조건
주: Ensure that the connection to Salesforce account is authenticated. For more information about
authentication, see Salesforce 인증 action.
프로시저
- From the Actions pane, select Salesforce > Download file attachment and place it in the canvas.
-
In the configuration pane, enter the following:
-
Enter the Object's record ID from which you want to
download the file. For example: '5004W000026rD4HQAU'
주: The Salesforce package does not support downloading files from the the Attachment table as it is a legacy Salesforce feature.
- Enter the Destination folder where you want to save the file.
-
Set Download all files/filter by to one of the
following options:
All files: Download all the attached files from a record.File name: Download a file by entering a file name.File extension: Download all the files with the same extension that you enter.Content document ID: Download a particular version of a file.
- Enter Default as the session name.
- Save the outcome to a variable. For example, the details of the downloaded files can be saved in a variable, such as ListResponse
-
Enter the Object's record ID from which you want to
download the file. For example: '5004W000026rD4HQAU'
-
To verify, you can run the bot and whether the file is downloaded to
the specified location. The following video demonstrates how to download a file from
Salesforce to a location on a local system.
주:
- The file is downloaded from the ContentDocument Object.
- File names are limited to 50 alphanumeric characters and any special characters are filtered when you download the file. The downloaded file name includes a document version ID that is appended before the file name, this ensures that the file name is unique. For example, if the file name is TEST_a_quick_brown_fox then the downloaded file name is 0684W00000c3OXFQA2-TEST_a_quick_brown_fox.
주: 출력은 유형 목록 Dictionary으로 검색됩니다. 이 목록의 개별 기록(행)을 읽으려면 Loop 작업을 사용해 모든 사전 아이템을 반복하거나 기록(행)을 개별적으로 추출해야 합니다. 예를 들어, 여러 기록 가져오기의 출력은 list_of_records_any 변수에 저장됩니다. 변수에 5개의 기록이 포함된 경우 각 기록은 루프 작업으로 전달되어 한 번에 하나씩 처리됩니다.The output contains information such as document title, content document ID, file path, file extension, download status and error message if any of the downloaded file.