Document Find and Replace bulk action for Contacts and Companies#750
Document Find and Replace bulk action for Contacts and Companies#750promptless-for-oss wants to merge 4 commits into
Conversation
Add documentation for the new Find and Replace bulk action that allows users to update field values across multiple records by finding a specific value and replacing it with a new one. Includes documentation for both Contacts and Companies sections, with notes about permissions and the page-level action for applying replacements to search results.
|
|
||
| * **Export** - Allows you to export selected Contacts to CSV. | ||
|
|
||
| * **Find and Replace** - Updates field values across selected Contacts by finding a specific value and replacing it with a new one. Select a Contact field, enter the value to find, and specify the replacement value. Only Contacts with the matching field value receive the update. |
There was a problem hiding this comment.
Added Find and Replace bulk action documentation based on PR #16207 which introduces batchFindReplaceAction in LeadController.php and CompanyController.php. The PR adds a new FindReplaceType form and CustomFieldFindReplace service for this feature.
Source: mautic/mautic#16207
|
|
||
| The following batch actions are available: | ||
|
|
||
| * **Find and Replace** - Updates field values across selected Companies by finding a specific value and replacing it with a new one. Select a Company field, enter the value to find, and specify the replacement value. Only Companies with the matching field value receive the update. |
There was a problem hiding this comment.
Added batch actions section with Find and Replace based on PR #16207 which adds batchFindReplaceAction to CompanyController.php and updates Company/list.html.twig to include the bulk action button.
Source: mautic/mautic#16207
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the suggestions.
- Bold 'Find and Replace' as a UI term in all instances - Replace 'page actions menu' with 'list view actions' to avoid Vale warning
|
Thanks for the feedback @adiati98! I've addressed all the suggestions:
|
andersonjeccel
left a comment
There was a problem hiding this comment.
- there's no green arrow above checkboxes
- when checking the checkboxes, a toolbar appears above table including a 3-dots icon menu where the Find and Replace option is available
Remove the incorrect 'green arrow' reference for accessing batch actions on Contacts and Companies. Per maintainer @andersonjeccel, selecting rows via checkboxes surfaces a toolbar above the table with a three-dot menu listing the available batch actions.
|
Thanks @andersonjeccel — you're right, and I've updated the PR to match. I removed the incorrect "green arrow above the checkboxes" wording and corrected the workflow: selecting rows via the checkboxes surfaces a toolbar above the table with a three-dot icon menu, where Find and Replace is available. I also fixed the same pre-existing "green arrow" phrasing in the Contacts batch-actions intro since it was inaccurate too. Changed files:
The Find/Replace behavior, the list-view action against the current search result, and the permission notes are unchanged. Ready for another look. |
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the suggestions.
|
Thanks @adiati98! I've applied all three suggestions to the PR:
Changed files:
Ready for another look. |
Open this suggestion in Promptless to view citations and reasoning process
Documents the new Find and Replace bulk action that allows users to update field values across multiple Contacts or Companies by finding a specific value and replacing it. Covers both the selection-based action and the page-level action for current search results.
Trigger Events
Tip: Request one-off documentation tasks in the Dashboard under New Task 🚀