highbond_erm_objective_dynamic (Resource)

Example Usage

resource "highbond_erm_objective_dynamic" "example_objective" {
  name            = "Test Objective 1"
  description     = "This is a test objective created for example purposes."
  objective_id    = "objective_001"
  # The `owner_user_id` and `owner_groups_id` fields are subject to API validations that depend on organization-level configurations. Some organizations only allow a single user ID and do not accept group IDs. This behavior can be confirmed through the `/schema` API.
  owner_user_id   = ["UxZMvGmx97evS5ss_SKH"]
  owner_groups_id = ["10714", "10715", "14959"]
  goal            = "Test Goal"
  start_date      = "2025-12-31T00:00:00.000Z"
  end_date        = "2025-12-31T23:59:59.999Z"
  metric          = "Test Metric"
  org_units       = ["PZYxxzsk79G", "GkPKkvBb3bU"]

  custom_attributes {
    type = "text"
    name = "c-custom_text_attribute__c"
    data = "example text value"
  }

  custom_attributes {
    type = "select"
    name = "c-custom_select_attribute__c"
    data = jsonencode({ id = "ffd77e19-af0d-40c1-8bbd-9aee25ae659a", name = "Option A" })
  }

  custom_attributes {
    type = "boolean"
    name = "c-custom_boolean_attribute__c"
    data = "true"
  }

  custom_attributes {
    type = "userLookup"
    name = "c-custom_user_lookup_attribute__c"
    data = jsonencode({
      users  = [{ id = "UxZMvGmx97evS5ss_SKH" }]
      groups = []
    })
  }

  custom_attributes {
    type = "dateTime"
    name = "c-custom_date_attribute__c"
    data = "2026-03-05T00:00:00.000Z"
  }
}

Schema

Required

  • name (String) The name of the objective

Optional

  • custom_attributes (Block List) Custom attributes for this ERM resource. Each block requires type, name, and data fields. (see below for nested schema)
  • description (String) Narrative description of the objective
  • end_date (String) The end date of the objective
  • force_updates (Boolean) Allows overriding top-level 'create_only' option.
  • goal (String) The Goal statement
  • metric (String) The Metric or measurement definition of the objective
  • objective_id (String) External or human-friendly identifier (legacy reference)
  • org_units (Set of String) Organizational units associated with the objective
  • owner_groups_id (Set of String) Array of responsible group IDs
  • owner_user_id (Set of String) Array of responsible person IDs
  • start_date (String) The start date of the objective

Read-Only

  • created_at (String) The date the objective was created
  • id (String) The ID of this resource.
  • updated_at (String) The date the objective was updated

Nested Schema for custom_attributes

Required:

  • data (String) The attribute value as a string. For scalar types use plain values. For structured types (select, userLookup) use a JSON string matching the API schema.
  • name (String) The attribute name as defined in the schema
  • type (String) The attribute type (e.g. text, paragraph, number, boolean, dateTime, select, nonUniqueSelect, userLookup, relationship)