Lowercase Email

I have below first validation I want to convert the email lowercase. how to include tolower into this transform?

for example - [email protected] to [email protected]



{
  "attributes": {
    "values": [
      {
        "attributes": {
          "attributeName": "mail",
          "sourceName": "AD"
        },
        "type": "accountAttribute"
      },
      {
        "attributes": {
          "attributeName": "EMAIL_ADDRESS_WORK",
          "sourceName": "Workday"
        },
        "type": "accountAttribute"
      },
      {
        "attributes": {
          "value": "[No Email]"
        },
        "type": "static"
      }
    ]
  },
  "name": "Work Email",
  "type": "firstValid"
}
1 Like

Follow this format.

{
  "name": "Email",
  "type": "static",
  "attributes": {
    "lowerCaseEmail": {
      "type": "lower",
      "attributes": {  Your Transform Here },
"value": "$lowerCaseEmail"
  }
}

Refer this documentation on how to use lower transform: Generate Temporary Password | SailPoint Developer Community

{
    "type": "lower",
    "attributes": {
        "input": {
            "attributes": {
              "values": [
                {
                  "attributes": {
                    "attributeName": "mail",
                    "sourceName": "AD"
                  },
                  "type": "accountAttribute"
                },
                {
                  "attributes": {
                    "attributeName": "EMAIL_ADDRESS_WORK",
                    "sourceName": "Workday"
                  },
                  "type": "accountAttribute"
                },
                {
                  "attributes": {
                    "value": "[No Email]"
                  },
                  "type": "static"
                }
              ]
            },
            "type": "firstValid"
          }
    },
    "name": "Email Lower Transform"
}