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

feat: Added support to use order by in SOQL queries for the core:ExportFiles Add On #803

Closed jawills closed 2 weeks ago

jawills commented 2 months ago

Added the ability to use the ORDER BY keyword for SOQL queries when using the ExportFiles addon. This is useful to specify the order of files, so the most recent files in the source org are also the most recent files in the target org.

Example use case with Conga: https://github.com/forcedotcom/SFDX-Data-Move-Utility/issues/779

Usage is as follows:

"afterAddons": [
  {
    "module": "core:ExportFiles",
    "args": {
      "operation": "Insert",
      "contentDocumentLinkOrderBy": "ContentDocument.CreatedDate DESC"
    }
  }
]
salesforce-cla[bot] commented 2 months ago

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Justin Wills J***@g***.com. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

hknokh commented 2 weeks ago

Thanks for the contribution