Configuring Transform Functions
In cases where your requirements exceed what can be configured by using the default transform functions provided with the Max platform, you can configure new functions to meet your needs.
To configure transform functions:
1. In Max Designer, on the Developer Tools () launchpad menu, click Source, and then on the list view page, in the top left corner, click Create ().
2. On the New Source page, in the Name field, enter the name you want to use for the function, and then in the Application field, select Service Board.
3. In the Code field, enter Groovy code, for example:
package com.servicemax.transform.function
class CustomizeFunction {
def uppercase = {val ->
return val.toUpperCase()
}
}
This sample defines a function named uppercase that you can call to convert a string to all uppercase characters.
4. Use the newly defined function in the Custom Field Mapping field in Transform Template records, as follows:
"io_description": "uppercase(Name)"
* 
When you configure transform functions, always use the com.servicemax.transform.function.CustomizeFunction class and the com.servicemax.transform.function package, and set the class name as CustomizeFunction in your Groovy code.
For more information:
Was this helpful?