Managing Custom Fields, Custom Tables, and Forms

Objective

After completing this lesson, you will be able to create and manage dictionaries, custom fields, custom tables, and reusable forms in Advanced Workflow.

Custom Fields

Custom fields and custom forms allow you to add additional customizations to a workflow to meet the needs of the business.

Custom fields allow you to extend the standard workflow fields with business-specific data. As with standard fields, custom fields have a name, which acts as the system name, and a label, which is visible to the users. Custom fields can have many types, including text, date, currency, pick list, and many more. A full list of field types can be found in the online help.

Create Custom Fields

In this exercise, you will add the custom fields required for the implementation.

Steps

  1. Create the custom fields listed in the table below.

    NameLabelType
    INQ First NameFirst NameText
    INQ Last NameLast NameText
    INQ EmailEmailEmail
    1. From the Setup screen, select Fields & FormsCustom Fields.

    2. Select Add New.

    3. Enter the field name.

    4. Enter the field label.

    5. Select the field type.

    6. Select Save.

  2. Create Pick List fields using the data in the table below.

    NameLabelTypeLabels
    INQ Inquiry TypeInquiry TypePick List

    Bonus Inquiry

    General Inquiry

    Incentive Inquiry

    INQ Reason For RequestReason For RequestPick List

    Incorrect Payment

    Incorrect Rate

    Incorrect Value

    Missing Bonus

    Incorrect Bonus

    Other

    INQ Deny ReasonDeny ReasonPick List

    Invalid Reason

    Submitted Incorrectly

    Not Valid

    1. From the Setup screen, select Fields & FormsCustom Fields

    2. Select Add New.

    3. Enter the field name: INQ Inquiry Type.

    4. Enter the field label: Inquiry Type.

    5. Select the field type: Pick List.

    6. Select the Values tab.

  3. Create pick lists values for the Inquiry Type.

    1. Select Add New.

    2. Enter the field name: INQ Inquiry Type

    3. Enter the field label: Inquiry Type

    4. Select the field type: Pick List.

    5. Select the Values tab.

    6. Select Defining Values Manually

    7. Select Add New

    8. Enter the value label: Bonus Inquiry

    9. Select Add

    10. Repeat the last two steps to add the values General Inquiry and Incentive Inquiry

    11. Select Save.

    12. Repeat step 3 to add the custom fields INQ Reason For Request and INQ Deny Reason, using the values in the table above.

Custom Field Translation

When adding a custom field, you can add language translation on the field level. To do this, first create a custom dictionary based on the system dictionary, then add the translation.

Create a Custom Dictionary

Steps

  1. From the Setup screen, select AdministrationDictionary .

  2. Select Add New.

  3. Enter a name for the custom dictionary.

  4. In the language field, select the language the new dictionary will be based on. For example, Spanish or Japanese.

  5. Uncheck the Use as Default box.

  6. Select Save.

Add a Translation to a Custom Field Name

Steps

  1. In the Custom Fields screen, find the custom field to translate.

  2. Select Actions (…)Translate .

  3. In the Translate To field, select the name of the custom dictionary.

  4. In the Translation Value field, enter the translation for the field name.

    Translation popup for INQ Case Name with dictionary options, target language selection, and translation input field for Spanish training.

    Best practices for custom fields:

    • Use meaningful names for custom fields.

    • Keep field names brief.

    • Precede custom field names with a prefix to identify which workflow uses the field. This makes it easier to search for all custom fields in a workflow.

Custom Tables

Custom tables provide a flexible mechanism for storing data directly in the system. These tables are easily accessible from workflow scripts, enabling dynamic data manipulation and retrieval. This offers a significant performance advantage over repeatedly querying external databases or APIs, as accessing data from custom tables is considerably faster.

Creating a custom table involves providing a name and defining its columns. All columns in a custom table are treated as text strings.

Cells in custom tables can be populated in two ways: manually adding the values or using an SQL query.

Once created, you can add, edit, query, and delete rows within the table using the built-in interface. You can export the table data to a CSV file, modify it externally using tools like Microsoft Excel, and then re-import the updated data back into the table. This bulk import/export functionality simplifies data management for large datasets. The system automatically uses Object IDs (OIDs) to identify each row. If an OID is present during import, the row is updated; otherwise, a new row is inserted.

Custom table entry screen for INQ_REASON showing listed entries with fields for OID, EN_NAME, SYSTEM_ID, and inquiry types.

Custom tables can be added to a form by associating them with a custom field. The custom field can have any type that can display a list, such as Custom Table Controller, Pick List, or Radio Button.

Custom tables can be accessed from scripts using the getCustomTable REST object method. This method allows you to execute queries against custom tables, retrieving data for use within your workflow scripts. This allows you to dynamically populate fields or make decisions based on data stored in your custom tables.

Create and Populate a Custom Table

In this exercise, you will create a custom table that contains a list of periods. The user can select the period from a pick list when creating a new inquiry.

Steps

  1. Create a Custom Table called INQ_Period.

    1. From the Setup screen, select DevelopmentCustom Tables .

    2. Enter the following:

      • Name: INQ_Period

      • Column Name: Period Name

    3. Select Save.

  2. Populate the custom table with the periods January 2025, February 2025, March 2025, and April 2025.

    1. Select ActionsView Entries.

    2. Select Add New.

    3. Enter the period name: January 2025.

    4. Select Save and New.

    5. Enter the period name: February 2025 .

    6. Select Save and New.

    7. Repeat these steps to add periods for March 2025 and April 2025.

Create a Custom Field that Uses a Custom Table

In this exercise, you will create a custom field that displays the list of periods in a pick list.

Steps

  1. Create a custom field called INQ Period that displays the list of periods in a pick list.

    1. From the Workflow Setup area, select Fields & FormsCustom Fields.

    2. Select Add New.

    3. Enter the name: INQ Period.

    4. Enter the label: Period

    5. In the Field Type, select Pick List.

    6. Select the Values tab.

    7. Select Using Query to Load Values.

    8. In the Query field, enter SELECT PERIODNAME FROM INQ_PERIOD

    9. Select Run Test.

    10. Select Save.

Forms and the Form Designer

Forms are the user interface that payees and others see when they interact with the system. They are designed using the Form Designer, which allows you to add fields and other components for workflow actions. Forms can be created as a component of an action, in which case the form can only be used for that action, or they can be created independently and reused across multiple actions. To create a form that can be used across multiple actions, from the Setup screen, select Fields and FormsReusable Form.

When designing a custom form, you can select standard or custom fields; UI components such as text boxes, buttons and iFrames; and integration widgets. The Form Designer includes three integration widgets: Canada Post, Google Address Validator, and Google reCaptcha.

Form Designer interface for creating a case, showing fields for personal info, case details, inquiry details, and submission button.

Create a Custom Form for the Create Case Action

In this exercise, you will create a custom form that uses the custom fields created in the previous exercise.

Steps

  1. Create the custom form called Create Case.

    1. From the Setup screen, select Fields and FormsReusable Forms.

    2. Select Add New.

    3. Enter the form name: INQ Create Case.

    4. Select Save and Go to Form Designer.

  2. Add a section for the Position fields and set it to include one column.

    1. Select the UI tab.

    2. Drag the Section object from the list of HTML objects to the form canvas.

    3. Select the edit (pencil) icon.

    4. In the Title field, enter Personal Info.

    5. Set the number of columns to 1.

  3. Add custom fields to the Personal Info section.

    1. Select the Custom tab.

    2. Select the Search field.

    3. Enter the text INQ.

    4. Select Search .

    5. Drag the INQ Period field from the list of fields to the form canvas.

    6. Drag the following fields to the form canvas, arranging them so the form looks like the image below:

    7. Select Save.

  4. Add a new section below the first one. Name the section Case Information and give it one column.

    1. Select the UI tab.

    2. Drag the Section object from the list of HTML objects to the form canvas below the first section.

    3. Select the Edit icon.

    4. Enter the name Case Information.

    5. Set the number of columns to 1.

  5. Add standard fields to the Case Information section.

    1. Select the Standard tab.

    2. Drag the following fields to the form canvas:

      • Case Name
      • Description
      • Priority
      • File Name
  6. Add the Inquiry Type field to the Case Information section and make it required.

    1. Select the Custom tab.

    2. Drag the INQ Inquiry Type field to the bottom of the section

    3. Select the Edit icon next to the Inquiry Type field.

    4. Select Required.

    5. Select Save.

  7. Add a Submit button to the bottom of the form.

    1. Select the UI tab.

    2. Drag the Button object to the bottom of the form.

    3. Enter the following in the dialog box:

      • Button Label: Submit
      • System ID: submit_btn
      • Confirmation message: Enabled
      • Confirmation text: Inquiry will be submitted. Ready?
      • Choose button behavior: Submit Form
    4. Select Save.

Summary

  • Custom fields allow you to extend the standard workflow fields with business-specific data.
  • Custom tables store and manage data that can be referenced in workflows, fields and forms.
  • Forms are the user interface that payees and others see when they interact with the system.
  • Forms can be customized using the Form Designer.
  • System dictionaries contain standard translations for standard system objects. Custom dictionaries can be created to add custom translations.