I’m having difficulty creating a “transform” to use the mail attribute of a source (active directory account) and if the source’s email field is empty, fill it with static text.
{
"name": "First Valid Mail field",
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"sourceName": "AD Homolog - user",
"attributeName": "mail",
},
},
{
"type": "static",
"attributes": {
"value": "[email protected]"
},
},
]
},
}