CRM 0.14.0: CRM media in core's media reorganizer
CRM 0.14.0 plugs the CRM into PhoenixKit’s media reorganizer, so attachment folders made before you set a parent folder can be moved under it in one planned step.
Moving older CRM folders
Since 0.13, a host app can tell the CRM where new attachment folders go with the :attachments_parent_folder setting. Folders created before that stay where they were. On PhoenixKit 2.24 or later, the core media reorganizer now includes the CRM in its plan. For each contact, company and interaction with an older folder, the plan proposes moving it under the parent your setting returns.
The plan also reports what it will not move:
- duplicate folders where it cannot tell which one is right,
- folders that were already moved somewhere else,
- records your setting failed to answer for, in one report,
- orphaned folders, whose record is missing or trashed, or whose interaction belongs to a trashed contact or company.
Your setting is called only for records that have an older folder to move, not for every record. Without :attachments_parent_folder configured, the CRM’s part of the plan moves nothing and no setting is called.
A contact or company without a name is shown by its id in the plan, so its folder is planned like any other instead of the step being rejected.
Upgrading
No migration. Update the dependency. The reorganizer itself needs PhoenixKit 2.24 or later; on an older core the CRM works as before and is simply not part of a plan. Configure :attachments_parent_folder first if you want the plan to move anything.
Full release notes: CRM 0.14.0
0.14.0 · 16 September 2026
Added
PhoenixKitCRM.MediaReorganizer, registered throughmedia_reorganizer/0for core’s media reorganizer (core 2.24.0+). Its plan moves each contact’s, company’s and interaction’s legacycrm-*-<uuid>folder under the parent the:attachments_parent_folderhook returns. It reports ambiguous duplicates, copies moved elsewhere, hook failures, and orphaned folders (record missing or trashed, or an interaction whose contact/company is trashed). Without the hook configured, the plan only reports and moves nothing.
Fixed
- A contact or company with no
nameis labeled by its uuid in the plan, so its folder is planned normally instead of the action being rejected as invalid.
CRM 0.14.0. Install or update: {:phoenix_kit_crm, "~> 0.14"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.