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

@W-15946941: New task added to display files in the salesforce org #3799

Merged
merged 7 commits into from
Jun 12, 2024

Conversation

lakshmi2506
Copy link
Contributor

@lakshmi2506 lakshmi2506 commented Jun 7, 2024

Files uploaded via the app launcher in the orgs are currently not included in the metadata listings.

To address this, the "display_files" task has been introduced to list these files efficiently.

  • This task gives the list of files in a tabular format querying the ContentDocument, fetching the fields Id, Filetype, and Filename, as filenames alone are not unique identifiers.
  • Upon uploading a new file, a fresh entry is generated in the ContentDocument entity, establishing it as the latest version in the ContentVersion entity. Subsequent uploads of new versions of already tracked documents are noted in the ContentVersion entity, without creating additional ContentDocument records.
  • Retrieving the latest version involves filtering the ContentVersion entity by setting IsLatest to true and employing the file's ContentDocumentId as the filter criterion.

@lakshmi2506 lakshmi2506 requested a review from a team as a code owner June 7, 2024 09:52
@lakshmi2506 lakshmi2506 requested a review from jkasturi-sf June 7, 2024 09:52
jkasturi-sf
jkasturi-sf previously approved these changes Jun 12, 2024
Copy link
Contributor

@jkasturi-sf jkasturi-sf left a comment

Choose a reason for hiding this comment

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

This task will help to list the files uploaded to Salesforce

@lakshmi2506
Copy link
Contributor Author

Changed the task name to list_files and classname to ListFiles

@jkasturi-sf jkasturi-sf merged commit 2f8a94e into main Jun 12, 2024
21 of 23 checks passed
@jkasturi-sf jkasturi-sf deleted the feature/display_files branch June 12, 2024 09:25
@jstvz jstvz added the internal Pull requests from IPDE team label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Pull requests from IPDE team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants