Use a function to update a project in a simple scenario in Adobe Workfront Fusion

Updating a Workfront work item is a common use case for Workfront Fusion. In this example, you will use a function to change the name of a project to be in uppercase letters.

Fusion includes many types of functions that allow you to transform and perform conditional logic on your data. For more information on using functions, see Map information from one module to another in Adobe Workfront Fusion.

This example modifies the scenario created in Create a basic scenario.

Prerequisites

You must create the scenario described in Create a basic scenario before following this procedure.

Use a function to update a project

Add the Update Record module to your scenario

  1. Open the scenario in the scenario editor.

  2. Hover over the partial circle to the right of the of the module, then click Add another module.

  3. Select Adobe Workfront from the list of applications, then choose the module Update Record.

  4. in the ID field, select the ID block that is under the Convert object module. This is the ID of the project that was output by that module.

    ID from Convert object

  5. In the Record Type field, select Project, because the object to be updated is a project.

  6. In the Select Fields to Map area, select Name.

    A Name field will open.

Map the function for the name update

When this scenario converts a request to a project, the project’s name is the same as the request. The function here takes that name and capitalizes all of the letters in it.

  1. Click the Name field.

    The mapping panel opens.

  2. In the mapping panel, click the Text and binary functions icon. Text functions icon

  3. Select the function upper.

    The function appears in the Name field, including the formatting for the input it expects.

    The input for this example is the name of the issue the project was converted from.

  4. Move your cursor between the parentheses, because this is where the input will go.

  5. In the mapping panel, click the module output icon. Module output icon

  6. Select the name block that was output by your first module.

    The name block appears in the function.

    Name block in function

  7. Click OK to save the module settings.

Test and activate

  1. Test the scenario by clicking Run once in the lower-left corner of the screen.

  2. Examine the output to ensure that the scenario ran as expected.

  3. When you are satisfied that the scenario is working as expected, click the Scheduling toggle in the lower-left of the screen to On.

    This activates the scenario. Active scenarios run according to the schedule set in the trigger module.

  4. In Workfront Fusion, click Save near the lower-left corner to save your progress on the scenario.

    note important
    IMPORTANT
    Save often as you hone and test a scenario.

Resources:

recommendation-more-help
5f00cc6b-2202-40d6-bcd0-3ee0c2316b43