Hi All,
I am writing the transform rule for setting ad attribute which is replacing text from another newly created ad attribute. I have tested the transform but it doesn’t work as expected.
Logic: I am having a cloud rule that generate unique email in the AD source and I want to get the mailNickname by replacing every text starting from @ in the mail attribute.
Please share some thoughts to address this issue. Thank you so much!
Here is my transform:
{
"name": "mailNickname",
"transform": {
"attributes": {
"input": {
"attributes": {
"value": "$mail"
},
"type": "static"
},
"regex": "(?=@).*",
"replacement": ""
},
"type": "replace"
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}