Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tasks to extract and upload files (Salesforce Files) #3800

Closed

Conversation

mjawadtp
Copy link
Contributor

@mjawadtp mjawadtp commented Jun 14, 2024

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

@mjawadtp mjawadtp requested a review from a team as a code owner June 14, 2024 03:43
display_files:
description: Display documents that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.
class_path: cumulusci.tasks.salesforce.salesforce_files.DisplayFiles
group: Salesforce Metadata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove display_files task added here..

list_files is already there and there is no class DisplayFiles
Add the tasks upload_files and retrieve_files in alphabetical order

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mjawadtp mjawadtp force-pushed the feature/extract_and_upload_files branch from 10d4abf to d5e8c46 Compare June 14, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants