Add tasks to extract and upload files (Salesforce Files) #3800
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two CumulusCI tasks namely retrieve_files and upload_files have been added.
The task retrieve_files downloads all the files uploaded to Files section of a Salesforce org. Task option output_directory lets you download files to a download location of your choice while file_id_list allows you to specify the ids of the files you want to download. By default, all the files present in your org are downloaded to Files/.
Similary, upload_files uploads files present in the directory 'Files'. directory to your Salesforce org. Task option 'path' lets you upload files present in a different directory than the task default directory 'Files'. You can also list the files to upload by name using the task option 'file_list'.
Unit tests for the aforementioned tasks have been added.
Work items: W-15946960 and W-15946966