firstValid Tranform issue

hey @pkumar22 , try this :

{
   
    "name": "MailAliasWorkdayEmail",
    "type": "static",
    "attributes": {
        "value": "#if($bsf.length() > 0)$bsf #elseif($nerm.length() > 0)$nerm #elseif($workdayEmailAlias != \"NONE\")$workdayEmailAlias#elseif($mailnickname != \"NONE\")$mailnickname#end",
        
        "bsf": {
            "type": "substring",
            "attributes": {
                "begin": 0,
                 "end": {
                     "type": "indexOf",
                     "attributes": {
                         "substring": "@",
                         "input":{
                            "type": "firstValid",
                            "attributes": {
                                "values": [
                                    {
                                        "type": "accountAttribute",
                                        "attributes": {
                                            "sourceName": "Workday FF",
                                            "attributeName": "EMAIL_ADDRESS_WORK"
                                        }
                                    },
                                    "@none.com"
                                ]
                            }
                        }
                     }
                 }
            }
        },
        "nerm": {
            "type": "substring",
            "attributes": {
                "begin": 0,
                 "end": {
                     "type": "indexOf",
                     "attributes": {
                         "substring": "@",
                         "input":{
                            "type": "firstValid",
                            "attributes": {
                                "values": [
                                    {
                                        "type": "accountAttribute",
                                        "attributes": {
                                            "sourceName": "Workday FF",
                                            "attributeName": "EMAIL_ADDRESS_WORK"
                                        }
                                    },
                                    "@none.com"
                                ]
                            }
                        }
                     }
                 }
            }
        },
        "workdayEmailAlias": {
            "type": "firstValid",
            "attributes": {
                "values": [
                    {
                        "attributes": {
                            "name": "workdayEmailAlias"
                        },
                        "type": "identityAttribute"
                    },
                    "NONE"
                ]
            }
        },
        "mailnickname": {
            "type": "firstValid",
            "attributes": {
                "values": [
                    {
                        "type": "accountAttribute",
                        "attributes": {
                            "sourceName": "Active Directory",
                            "attributeName": "mailNickname"
                        }
                    },
                    "NONE"
                ]
            }
        }
    },
    "internal": false
}