diff --git a/newrelic/data_source_newrelic_entity.go b/newrelic/data_source_newrelic_entity.go index bcf754520..d1b43fad6 100644 --- a/newrelic/data_source_newrelic_entity.go +++ b/newrelic/data_source_newrelic_entity.go @@ -67,7 +67,12 @@ func dataSourceNewRelicEntity() *schema.Resource { "application_id": { Type: schema.TypeInt, Computed: true, - Description: "The domain-specific ID of the entity (only returned for APM and Browser applications)", + Description: "The domain-specific ID of the entity (only returned for APM and Browser applications).", + }, + "serving_apm_application_id": { + Type: schema.TypeInt, + Computed: true, + Description: "The browser-specific ID of the backing APM entity. (only returned for Browser applications)", }, "guid": { Type: schema.TypeString, @@ -149,6 +154,13 @@ func flattenEntityData(e *entities.Entity, d *schema.ResourceData) error { return err } + if e.ServingApmApplicationID != nil { + err = d.Set("serving_apm_application_id", *e.ServingApmApplicationID) + if err != nil { + return err + } + } + return nil }