forcedotcom / SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
BSD 3-Clause "New" or "Revised" License
438 stars 73 forks source link

[FEATURE REQUEST] - Add filter on contentdocument / limit when using ExportFiles Core Add-On #779

Closed jawills closed 2 months ago

jawills commented 2 months ago

When using the ExportFiles Core Add-On, I would like to be able to filter on the ContentDocument object, and not just the ContentVersion object. Ideally a limit and/or sort order can be applied to this filter.

Use case for this would be Conga Templates, where Conga only takes the most recently uploaded file. It is unclear to me how to transport the most recent file from the source org to the target org with the current status.

Ideally this is passed as an arg, like so:

"afterAddons": [
  {
    "module": "core:ExportFiles",
    "args": {
      "operation": "Insert",
      "contentDocumentWhere": "ORDER BY CreatedDate ASC LIMIT 1 "
    }
  }
]
hknokh commented 2 months ago

Hello, @jawills

Thank you for your feature request. I will review it as soon as possible and provide updates as they become available.

Cheers

github-actions[bot] commented 2 months ago

This case has been marked as 'to-be-closed', since it has no activity for the 3 days.
It will be automatically closed in another 3 days of inactivity.

github-actions[bot] commented 2 months ago

This case has been closed, since it has no activity for the last 6 days. Feel free to reopen it, if you need more help.

hknokh commented 2 weeks ago

Your MR has been merged This is completed now Thanks for the contribution!