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
454 stars 74 forks source link

HOW to Data Anonymization #666

Closed ghost closed 1 year ago

ghost commented 1 year ago

By Using SFDMU TOOL how we can replace the last 4 digit of the phone number in asterisk.

hknokh2 commented 1 year ago

Hello,

Thank you for contacting me. Unfortunately, the Data Anonymization feature does not support this functionality. However, you can achieve the desired outcome by using the Regex Replacement or JS Eval Replacement options available in the Value Mapping feature. For more information and guidance, please refer to this link: https://help.sfdmu.com/full-documentation/advanced-features/values-mapping.

Something like this can work for you (assuming you have only digits in your phone number):

RawValue=/^(\d*)\d{4}$/
Value=$1****    

Best regards.

github-actions[bot] commented 1 year 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 1 year 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.