Hi everyone,
I’m traing to create a transformation, using the example in the documentation for transform usernameGenerator: Username Generator | SailPoint Developer Community
The code examplo that I’m using:
{
"attributes": {
"cloudMaxSize": "100",
"cloudMaxUniqueChecks": "9",
"cloudRequired": "true"
},
"isRequired": false,
"multi": false,
"name": "criaEmailTerceiro",
"transform": {
"type": "usernameGenerator",
"attributes": {
"sourceCheck": true,
"patterns": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"$terc$f1.$ln{uniqueCounter}@dominio.com.br"
],
"f1": {
"type": "lower",
"attributes": {
"input": {
"attributes": {
"begin": 0,
"end": 1,
"input": {
"type": "accountAttribute",
"attributes": {
"sourceName": "Base",
"attributeName": "NOME"
}
}
},
"type": "substring"
}
}
},
"f2": {
"type": "lower",
"attributes": {
"input": {
"attributes": {
"begin": 0,
"end": 2,
"input": {
"type": "accountAttribute",
"attributes": {
"sourceName": "Base",
"attributeName": "NOME"
}
}
},
"type": "substring"
}
}
},
"f3": {
"type": "lower",
"attributes": {
"input": {
"attributes": {
"begin": 0,
"end": 1,
"input": {
"type": "accountAttribute",
"attributes": {
"sourceName": "Base",
"attributeName": "NOME_DO_MEIO"
}
}
},
"type": "substring"
}
}
},
"ln": {
"type": "lower",
"attributes": {
"input": {
"type": "accountAttribute",
"attributes": {
"sourceName": "Base",
"attributeName": "ULTIMO_SOBRENOME"
}
}
}
},
"terc": {
"type": "static",
"attributes": {
"value": "terceiro-"
}
}
}
},
"type": "usernameGenerator"
}
But when I save it looks like this after I save the transformation:
This is the code after that I saved:
{
"id": "For security I change this ID",
"name": "criaEmailTerceiro",
"type": "usernameGenerator",
"attributes": {
"cloudMaxSize": "100",
"cloudMaxUniqueChecks": "9",
"cloudRequired": "true"
},
"internal": false
}
Anybody could be help me to identify this problem and solve?
thank you very much in advance