IdentityNow Transforms - Lower
Overview
The lower transform is a simple transform to convert an input string into all lowercase letters.
Other Considerations
- N/A
Transform Structure
The transform for lower is quite simple. All that is necessary is the transform's type
and name
attributes, as described in the below example:
Example
{
"type": "lower",
"name": "Test Lower Transform"
}
Attributes
-
Required Attributes
- type - This must always be set to
lower
- name - This is a required attribute for all transforms, and represents the name of the transform as it will appear in the UI's dropdowns
- type - This must always be set to
-
Optional Attributes
- requiresPeriodicRefresh - A
true
orfalse
value that indicates whether the transform logic should be re-evaluated every evening as part of the identity refresh process. - input - This is an optional attribute that can explicitly define the input data which will be fed into the transform logic. If
input
is not provided, the transform will take its input from the source and attribute combination configured via the UI.
- requiresPeriodicRefresh - A
Examples
Example 1
Input: "ACTIVE"
Output: "active"
{
"attributes": {
"input": {
"attributes": {
"value": "ACTIVE"
},
"type": "static"
}
},
"type": "lower",
"name": "Test Lower Transform"
}
Example 2
Input: "All-Access"
Output: "all-access"
{
"attributes": {
"input": {
"attributes": {
"value": "All-Access"
},
"type": "static"
}
},
"type": "lower",
"name": "Test Lower Transform"
}
References
- N/A
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Email to a Friend
- Report Content to Moderator
@hari_patel I am getting error "Required field \"attributes\" was missing or empty", if we try to create transform without attributes, I want to provide input directly from UI.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Email to a Friend
- Report Content to Moderator
@sbhingare I'm not sure I understand your use case here. If you want just a simple "toLower()" transform, that is already available out-of-the-box. It's the "ToLower" option from your Transform dropdown in the identity profile mappings UI.
If you're attempting to transform an attribute to lower case after executing some other operation(s) on it, then those nested transforms would flow up through the "input" parameter of your attributes map:
{
"attributes": {
"input": {
"attributes": {
"table": {
"[.]": "-"
}
},
"type": "replaceAll"
}
},
"type": "lower",
"name": "Test Lower Transform"
}
In the above example, if the attribute selected in the UI would automatically get passed into the "replaceAll" transform, which would replace any periods with hyphens, and then the outer "lower" transform would convert the string into all lowercase letters. so, something like "Smith.Jones" would render as "smith-jones" when passed through this complex transform.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Email to a Friend
- Report Content to Moderator
Thanks @hari_patel, I didn't know that ToLower is already available OOTB. I was trying to create similar transform.