Need to remove a string "test" from the firstname. Since Scrub is removing the characters, tried PatternBasedFieldCleanser to remove the entire string .
But its not working as expected.
FirstName : SwethaTest
Expected output : Swetha
"infos": [
{
"uri": "configuration/entityTypes/Contact/cleanse/infos/PatternBasedFieldBuilder",
"useInCleansing": true,
"sequence": [
{
"chain": [
{
"cleanseFunction": "PatternBasedFieldBuilder",
"resultingValuesSourceTypeUri": "configuration/sources/ReltioCleanser",
"proceedOnSuccess": true,
"proceedOnFailure": true,
"mapping": {
"inputMapping": [
{
"attribute": "configuration/entityTypes/Contact/attributes/FirstName",
"mandatory": false,
"allValues": false,
"cleanseAttribute": "FirstName"
}
],
"outputMapping": [
{
"attribute": "configuration/entityTypes/Contact/attributes/FirstName",
"mandatory": true,
"allValues": false,
"cleanseAttribute": "OutputText"
}
]
},
"params": {
"isForce": true,
"pattern": "test"
}
}
]
}
]
}
------------------------------
Swetha Soundarapandian
Mastech Infotrellis
SALEM
------------------------------