Skip to content

Document Find and Replace bulk action for Contacts and Companies#750

Open
promptless-for-oss wants to merge 4 commits into
mautic:7.2from
Promptless:promptless/find-replace-bulk-action
Open

Document Find and Replace bulk action for Contacts and Companies#750
promptless-for-oss wants to merge 4 commits into
mautic:7.2from
Promptless:promptless/find-replace-bulk-action

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

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 🚀

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@promptless-for-oss please address the suggestions.

Comment thread docs/companies/companies_overview.rst Outdated
Comment thread docs/contacts/manage_contacts.rst Outdated
Comment thread docs/contacts/manage_contacts.rst Outdated
- Bold 'Find and Replace' as a UI term in all instances
- Replace 'page actions menu' with 'list view actions' to avoid Vale warning
@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback @adiati98! I've addressed all the suggestions:

  • Bolded Find and Replace as a UI term in all instances
  • Replaced "page actions menu" with "list view actions" to avoid the Vale warning about "page"

@andersonjeccel andersonjeccel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • 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.
@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

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:

  • docs/contacts/manage_contacts.rst
  • docs/companies/companies_overview.rst

The Find/Replace behavior, the list-view action against the current search result, and the permission notes are unchanged. Ready for another look.

@adiati98 adiati98 requested a review from andersonjeccel June 26, 2026 16:48

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@promptless-for-oss please address the suggestions.

Comment thread docs/companies/companies_overview.rst Outdated
Comment thread docs/companies/companies_overview.rst
Comment thread docs/contacts/manage_contacts.rst Outdated
@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

Thanks @adiati98! I've applied all three suggestions to the PR:

  • Updated the Companies batch-action intro to describe selecting rows via checkboxes, which surfaces a toolbar at the top of the table with a three-dot menu listing the available batch actions.
  • Updated the Find and Replace and Delete Selected list items under the Companies batch actions to your wording.
  • Applied the matching intro update to the Contacts batch-actions section.

Changed files:

  • docs/companies/companies_overview.rst
  • docs/contacts/manage_contacts.rst

Ready for another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants