Map data using custom functions
You can create custom functions in the Functions area of Fusion. You then add these functions to your scenarios in the form of an Adobe App Builder module.
Because custom functions work through Adobe App Builder, your organization must have an Adobe App Builder license to use them.
Custom functions, like most scenario elements, are owned by teams.
Workfront Fusion also includes built-in functions that allow you to create simple or complex formulas. These functions cover a wide variety of use cases, including functions for arrays, strings, numbers, and data from previous modules.
For information and instructions on built-in functions, see Map an item using built-in functions.
Access requirements
| table 0-row-2 1-row-2 2-row-2 layout-auto html-authored no-header | |
|---|---|
| Adobe Workfront package |
Any Adobe Workfront Workflow package and any Adobe Workfront Automation and Integration package Workfront Ultimate Workfront Prime and Select packages, with an additional purchase of Workfront Fusion. |
| Adobe Workfront licenses |
Standard Work or higher |
| Product |
|
For more detail about the information in this table, see Access requirements in documentation.
Configure a custom function
Custom functions are configured in the Functions area of Workfront Fusion. After a function is configured, you can add it to a scenario using the Adobe App Builder connector.
Initialize your runtime environment
Before you can create custom functions, you must initialize your runtime environment. This needs to be done only if your team does not have any custom functions.
-
Click the Functions
tab in the left panel.
If you have not yet configured your runtime, you see the message “Runtime environment not configured.”
-
Click Initialize runtime.
After some time, a Functions list appears, with two sample functions.
Create a custom function
After your runtime environment is configured, you can begin creating custom functions.
-
Your custom function must be a JavaScript function.
-
Your custom function must return an object.
-
After you create a custom function, you cannot:
- Change its name
- View the default parameter values
-
Click the Functions
tab in the left panel.
-
Click Add function.
-
Enter a name for the custom function.
You will not be able to change this name later.
-
Enter the code for the function.
-
For each default parameter value you want to add, click Add Parameter and enter the parameter name and default value.
You can override default parameters when adding the function to a scenario.
-
Click Save
Add a custom function to a scenario
To add a custom function to a scenario, use the Adobe App Builder connector.
For instructions, see Adobe App Builder module.