How can I search activity using Activity ID?

By default, Oracle Field Service does not allow direct searching using the Activity ID (AID) field. For more information on the list of unavailable fields for filtering, refer to Search for Activities using Ad hoc Filter topic.

Step-by-Step Procedure

Step 1: Create a Custom Integer Property

This topic outlines the steps to enable Activity ID search by storing the Activity ID in a custom property when the activity is created.

This property will store the Activity ID for searching.

  1. Navigate to Configuration, click Properties.

  2. Click the Add button to create a new property.

  3. Configure the new property with the following details:

    • Name: Enter a descriptive name (e.g., Searchable_AID or Custom_Activity_ID).

    • Type: Select Integer.

    • Label: Provide a user-friendly label that will appear in the UI.

  4. Click Save to create the property.

Step 2: Configure a Message Scenario Step to Set the Property

This step automatically populates your new custom property with the AID when an activity is created.

  1. Navigate to Configuration, click Message Scenarios.

  2. Locate and select the Message Scenario that is triggered by the Add activity event.

    • If no such scenario exists or you need a dedicated one: Click Add to create a new scenario. Set its trigger to Add activity.

  3. Within the selected Message Scenario, click the Add New Scenario Steps button.

  4. In the Settings tab, configure the properties as shown below:

    this screenshot displays the scenario steps.

  5. Configure the Patterns tab as shown below:

    This screenshot displays the Patterns tab

  6. Configure the Blocking Conditions tab as shown below:

    This screenshot displays the Blocking conditions tab

  7. Click Save for the Message Scenario to apply the changes.

Step 3: Add the Custom Property to Activity Search Fields

This makes your new property visible and usable in the activity search interface.

  1. Navigate to Configuration, click Business Rules. click on User Types.

  2. Drill-down to the Search section and then locate the Activity Search Fields list.

  3. Click the Add button to add a new search field.

  4. From the drop-down list of available properties, select your custom integer property (for example, Searchable_AID).

  5. Click Save to apply the changes.

Once the above configuration steps are complete, you will be able to search based on your newly added custom property (for example Searchable_AID).