I’m working on trying to implement a transform to calculate an identity’s first initial and the calculation is not working properly.
Legal First Name: TestF
Preferred First Name: Prf2
There is a firstValid transform for the first name identity attribute which looks at preferred name first, then legal name.
The below transform resolves first initial as “t” instead of the expected result of “p”. Can anyone possibly explain why?
{
"name": "FirstInitial",
"type": "concat",
"attributes": {
"values": [
{
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"name": "firstname"
},
"type": "identityAttribute",
"requiresPeriodicRefresh": "true"
}
},
"type": "lower"
},
"delimiter": " ",
"index": 0
},
"type": "split"
},
"begin": 0,
"end": 1
},
"type": "substring"
},
{
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"name": "firstname"
},
"type": "identityAttribute",
"requiresPeriodicRefresh": "true"
}
},
"type": "lower"
},
"delimiter": " ",
"index": 1
},
"type": "split"
},
"begin": 0,
"end": 1
},
"type": "substring"
}
]
},
"internal": false
}