Adding Custom Fields with a Quick Enforcement Action

Adding Custom Fields to Query or Filter Results with a Quick Enforcement Action

You can use a quick Enforcement Action to add custom fields to all assets returned by a query.

  1. On the relevant Assets page, run a saved query or filter the Assets list.

  2. From the EC Actions menu, select Add custom field. The Add Custom Field dialog opens.

  3. In the Enforcement Set name field, a default value is provided. You can change this to fit your needs.

  4. In Field name, type a name for the custom field (for more details refer to Creating New Custom Fields). Then, select a Field type and Value type.

  5. In the Field value text box, type a value for the field.

  6. To have this field removed from assets that do not match the query parameters, select Remove this custom data field from entities not found in the query results (True/False), and then select one of the following options that open:

    • Remove entire field - Remove the complete custom field.
    • Remove values field - Remove values added to the custom field.

    A safeguard is displayed. Click Confirm if you want to continue.

  7. To run this Enforcement Set on a schedule, toggle on Select a Schedule Plan and configure the schedule you want. To learn more about running Enforcement Sets on a schedule, see Scheduling Enforcement Set Runs.

  8. Click Save and Run. The custom field is saved and the notification 'Action Created Successfully' is displayed.


Did this page help you?