Transform: provide an input/noop transform & select transform without attribute selected

Dear IDN Team,

I would like to use in some transform (e.g. static, dateCompare, firstValid) the implicit “input” (that is configured in the UI as source & attribute), but I don’t see an option to do it cleanly.

Some transforms (e.g. trim, ToUpper) can use the implicit input, but it will modify it, and some transforms like rightPad could be used as a workaround to not modify the input (e.g. by setting length to 0 I guess), but this is not clean and the behavior is not specified.

It would be nice if you could provide a transform that just passes the input without processing it (e.g. "type": "input"). That way it could be used like this:

{
   "type":"firstValid",
   "ignoreErrors":false,
   "attributes":{
      "values":[
         {
            "type":"input"
         },
         "9999-12-31"
      ]
   }
}

Not to open another issue, but for transforms that don’t use the implicit input, it would be nice not having to select a source and an attribute in the identity profile. That way one can communicate that the attribute is not important and other attributes are used (if any).

Best regards,
Andrei

Hi Andrei,

Try to pass null for internal transform attributes.

    "name": "Transform name",
    "type": "firstValid",
    "attributes": {
        "values": [
            {
                "type": "static",
                "attributes": {
                    "value": "$oldValue"
                }
            },
            {
                "type": "lower",
                "attributes": null
            }
        ]
    }

Hi Piotr,

How will this fix the issue?