Creating User Defined Functions
Create custom functions such as a complex calculation or a predefined logic using the User Defined Functions feature. You can save the functions and reuse them in data flows.
Accessing User Defined Functions
- On the Workspaces page, from the list of workspaces, select the workspace for which you want to create a function.
- On the home page of the workspace, click User Defined Functions. Alternatively, from Quick Actions, select User Defined Functions.
Creating a Library
Viewing Library Details
- On the Function libraries page, from the list of libraries, select the library for which you want to view the details.
- From the Actions menu, select View Details.
Adding Function Parameters
Create parameters that you can use in your function. To create input parameters:
Creating a Function
Editing Function Parameters
After you create input parameters for a function, you can use the Actions menu to edit, move, or delete an input parameter.
Managing Libraries and Functions
After you create a library, you can edit, duplicate, or delete it. Similarly, you can edit, move, or delete a function.
- On the Function libraries page, select the library that you want to edit, then click Edit.
- On the library details page, click Edit.
- In the Edit function library page that appears, make the required changes to the name and description of the library.
- Click Save Changes.
You can create a library by duplicating an existing one. To duplicate a library:
- On the Function libraries page, select the library in which the function that you want to move resides.
- In the Functions section of the library details page, for the function you want to move, click Move from the Actions menu.
- In the Edit library location dialog that appears, from the Library location list, select the library to which you want to move the function.
- Click Save.
- On the Function libraries page, from the list of libraries, select the name of the library in which the function that you want to delete resides.
- In the Functions section of the library details page, for the function that you want to delete, click Delete from the Actions menu.
- In the Delete Function dialog box that appears, click Delete.
Using the API
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
You can use the following operations to manage user defined functions:
- CreateFunctionLibrary
- DeleteFunctionLibrary
- GetFunctionLibrary
- ListFunctionLibraries
- UpdateFunctionLibrary
- CreateUserDefinedFunction
- DeleteUserDefinedFunction
- GetUserDefinedFunction
- ListUserDefinedFunctions
- UpdateUserDefinedFunction
- CreateUserDefinedFunctionValidation
- DeleteUserDefinedFunctionValidation
- GetUserDefinedFunctionValidation
- ListUserDefinedFunctionValidations