microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 13 forks source link

Make it easier to disable a data_record before delete. #467

Closed mattdot closed 1 month ago

mattdot commented 1 month ago

Many dataverse tables have a restriction that a record can not be deleted while it is active. You need to disable the record before it can be deleted. powerplatform_data_record should have an option to implement this delete behaviors so users don't have to custom implement this with powerplatform_rest.


resource "powerplatform_data_record" "business_unit" {
  environment_id = var.environment_id
  table_logical_name = "businessunit"

  disable_before_delete = true

  ...
}