From 52e197ebf6b6af23f92b029b0a350cf9fd937c39 Mon Sep 17 00:00:00 2001 From: mawasile <50197777+mawasile@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:53:53 +0200 Subject: [PATCH] Cover resource_data_record with unit tests (#341) * adding unit tests for resource_data_record * removing code * chore: Fix parameter name in applyRelations function --- .../resource_data_record_test.go | 773 +++- .../services/data_record/api_data_record.go | 19 +- ..._00000000-0000-0000-0000-000000000020.json | 154 + ...00000000020_contact_customer_accounts.json | 10 + ...00000-0000-0000-0000-000000000020_ref.json | 8 + ..._00000000-0000-0000-0000-000000000010.json | 229 + .../get_entitydefinition_account.json | 4063 +++++++++++++++++ .../get_entitydefinition_contact.json | 356 ++ ..._00000000-0000-0000-0000-000000000001.json | 199 + ..._00000000-0000-0000-0000-000000000020.json | 154 + ...00000000020_contact_customer_accounts.json | 10 + ...00000-0000-0000-0000-000000000020_ref.json | 8 + ..._00000000-0000-0000-0000-000000000010.json | 229 + .../get_entitydefinition_account.json | 4063 +++++++++++++++++ .../get_entitydefinition_contact.json | 356 ++ ..._00000000-0000-0000-0000-000000000001.json | 199 + ...0000000-0000-0000-0000-000000000010_1.json | 229 + ...0000000-0000-0000-0000-000000000010_2.json | 229 + ...0000000-0000-0000-0000-000000000010_3.json | 229 + .../get_entitydefinition_contact.json | 356 ++ ..._00000000-0000-0000-0000-000000000001.json | 199 + ...0000000-0000-0000-0000-000000000020_1.json | 154 + ...0000000-0000-0000-0000-000000000020_2.json | 154 + ...0000000-0000-0000-0000-000000000020_3.json | 154 + ...0000000-0000-0000-0000-000000000020_4.json | 154 + ...0000000-0000-0000-0000-000000000020_5.json | 154 + ...000000020_contact_customer_accounts_1.json | 15 + ...000000020_contact_customer_accounts_2.json | 15 + ...000000020_contact_customer_accounts_3.json | 15 + ...000000020_contact_customer_accounts_4.json | 15 + ...000000020_contact_customer_accounts_5.json | 15 + ...000-0000-0000-0000-000000000020_ref_1.json | 11 + ...000-0000-0000-0000-000000000020_ref_2.json | 11 + ..._00000000-0000-0000-0000-000000000010.json | 229 + ..._00000000-0000-0000-0000-000000000011.json | 229 + ..._00000000-0000-0000-0000-000000000012.json | 229 + .../get_entitydefinition_account.json | 4063 +++++++++++++++++ .../get_entitydefinition_contact.json | 356 ++ ..._00000000-0000-0000-0000-000000000001.json | 199 + 39 files changed, 18222 insertions(+), 22 deletions(-) create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_contact_00000000-0000-0000-0000-000000000010.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_contact.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_environment_00000000-0000-0000-0000-000000000001.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_ref.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_contact_00000000-0000-0000-0000-000000000010.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_contact.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_environment_00000000-0000-0000-0000-000000000001.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_1.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_2.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_3.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_entitydefinition_contact.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_environment_00000000-0000-0000-0000-000000000001.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_1.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_2.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_3.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_4.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_5.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_1.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_2.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_3.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_4.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_5.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_1.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_2.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000010.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000011.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000012.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_contact.json create mode 100644 internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_environment_00000000-0000-0000-0000-000000000001.json diff --git a/internal/powerplatform/resource_data_record_test.go b/internal/powerplatform/resource_data_record_test.go index b397f416..78addb85 100644 --- a/internal/powerplatform/resource_data_record_test.go +++ b/internal/powerplatform/resource_data_record_test.go @@ -5,6 +5,7 @@ package powerplatform import ( "fmt" + "net/http" "regexp" "testing" @@ -12,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-testing/knownvalue" "github.com/hashicorp/terraform-plugin-testing/statecheck" "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" + "github.com/jarcoal/httpmock" powerplatform_helpers "github.com/microsoft/terraform-provider-power-platform/internal/powerplatform/helpers" mock_helpers "github.com/microsoft/terraform-provider-power-platform/internal/powerplatform/mocks" ) @@ -118,6 +120,165 @@ func TestAccDataRecordResource_Validate_Create(t *testing.T) { }) } +func TestUnitDataRecordResource_Validate_Create(t *testing.T) { + httpmock.Activate() + defer httpmock.DeactivateAndReset() + + httpmock.RegisterResponder("GET", `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001?api-version=2023-06-01`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_environment_00000000-0000-0000-0000-000000000001.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27contact%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_entitydefinition_contact.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27account%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='account')?$expand=OneToManyRelationships,ManyToManyRelationships,ManyToOneRelationships`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts?$select=createdon`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json").String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, ""), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000010%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_contact_00000000-0000-0000-0000-000000000010.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json").String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)") + return resp, nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + httpmock.RegisterResponder("DELETE", `=~^https://00000000-0000-0000-0000-000000000001\.crm4\.dynamics\.com/api/data/v9\.2/([a-zA-Z]+)`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusNoContent, ""), nil + }) + + resource.Test(t, resource.TestCase{ + IsUnitTest: true, + ProtoV6ProviderFactories: TestUnitTestProtoV6ProviderFactories, + Steps: []resource.TestStep{ + { + Config: TestsProviderConfig + ` + + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "John" + lastname = "Doe" + telephone1 = "555-555-5555" + emailaddress1 = "johndoe@contoso.com" + anniversary = "2024-04-10" + annualincome = 1234.56 + birthdate = "2024-04-10" + description = "This is the description of the the terraform \n\nsample contact" + } + } + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + creditonhold = false + address1_latitude = 47.63 + description = "This is the description of the sample account" + revenue = 5000000 + accountcategorycode = 1 + + primarycontactid = { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + } + + contact_customer_accounts = [ + { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + } + ] + } + } + `, + + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact1", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "firstname": knownvalue.StringExact("John"), + "lastname": knownvalue.StringExact("Doe"), + "telephone1": knownvalue.StringExact("555-555-5555"), + "emailaddress1": knownvalue.StringExact("johndoe@contoso.com"), + "anniversary": knownvalue.StringExact("2024-04-10"), + "annualincome": knownvalue.Float64Exact(1234.56), + "birthdate": knownvalue.StringExact("2024-04-10"), + "description": knownvalue.StringExact("This is the description of the the terraform \n\nsample contact"), + })), + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "name": knownvalue.StringExact("Sample Account"), + "creditonhold": knownvalue.Bool(false), + "address1_latitude": knownvalue.Float64Exact(47.63), + "description": knownvalue.StringExact("This is the description of the sample account"), + "revenue": knownvalue.Float64Exact(5000000), + "accountcategorycode": knownvalue.Int64Exact(1), + "primarycontactid": knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringRegexp(regexp.MustCompile(powerplatform_helpers.GuidRegex)), + }), + "contact_customer_accounts": knownvalue.SetExact([]knownvalue.Check{ + 0: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringRegexp(regexp.MustCompile(powerplatform_helpers.GuidRegex)), + }), + }), + })), + }, + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_sample_contact1", "environment_id", "00000000-0000-0000-0000-000000000001"), + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_sample_contact1", "table_logical_name", "contact"), + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_account", "environment_id", "00000000-0000-0000-0000-000000000001"), + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_account", "table_logical_name", "account"), + ), + }, + }, + }) +} + func TestAccDataRecordResource_Validate_Update(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { TestAccPreCheck_Basic(t) }, @@ -219,6 +380,125 @@ func TestAccDataRecordResource_Validate_Update(t *testing.T) { }) } +func TestUnitDataRecordResource_Validate_Update(t *testing.T) { + httpmock.Activate() + defer httpmock.DeactivateAndReset() + + httpmock.RegisterResponder("GET", `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001?api-version=2023-06-01`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update/get_environment_00000000-0000-0000-0000-000000000001.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27contact%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update/get_entitydefinition_contact.json").String()), nil + }) + + var inx = 0 + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000010%29`, + func(req *http.Request) (*http.Response, error) { + inx++ + return httpmock.NewStringResponse(http.StatusOK, httpmock.File(fmt.Sprintf("services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_%d.json", inx)).String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)") + return resp, nil + }) + + httpmock.RegisterResponder("PATCH", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000010%29`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)") + return resp, nil + }) + + httpmock.RegisterResponder("DELETE", `=~^https://00000000-0000-0000-0000-000000000001\.crm4\.dynamics\.com/api/data/v9\.2/([a-zA-Z]+)`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusNoContent, ""), nil + }) + + resource.Test(t, resource.TestCase{ + IsUnitTest: true, + ProtoV6ProviderFactories: TestUnitTestProtoV6ProviderFactories, + Steps: []resource.TestStep{ + { + Config: TestsProviderConfig + ` + + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "John" + lastname = "Doe" + telephone1 = "555-555-5555" + emailaddress1 = "johndoe@contoso.com" + anniversary = "2024-04-10" + annualincome = 1234.56 + birthdate = "2024-04-10" + description = "This is the description of the the terraform \n\nsample contact" + } + }`, + + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact1", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "firstname": knownvalue.StringExact("John"), + "lastname": knownvalue.StringExact("Doe"), + "telephone1": knownvalue.StringExact("555-555-5555"), + "emailaddress1": knownvalue.StringExact("johndoe@contoso.com"), + "anniversary": knownvalue.StringExact("2024-04-10"), + "annualincome": knownvalue.Float64Exact(1234.56), + "birthdate": knownvalue.StringExact("2024-04-10"), + "description": knownvalue.StringExact("This is the description of the the terraform \n\nsample contact"), + })), + }, + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestMatchResourceAttr("powerplatform_data_record.data_record_sample_contact1", "environment_id", regexp.MustCompile(powerplatform_helpers.GuidRegex)), + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_sample_contact1", "table_logical_name", "contact"), + ), + }, + { + Config: TestsProviderConfig + ` + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "John1" + lastname = "Doe1" + telephone1 = "555-555-55551" + emailaddress1 = "johndoe@contoso.com1" + anniversary = "2024-04-11" + annualincome = 1234.51 + birthdate = "2024-04-11" + description = "This is the description of the the terraform \n\nsample contact1" + } + }`, + + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact1", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "firstname": knownvalue.StringExact("John1"), + "lastname": knownvalue.StringExact("Doe1"), + "telephone1": knownvalue.StringExact("555-555-55551"), + "emailaddress1": knownvalue.StringExact("johndoe@contoso.com1"), + "anniversary": knownvalue.StringExact("2024-04-11"), + "annualincome": knownvalue.Float64Exact(1234.51), + "birthdate": knownvalue.StringExact("2024-04-11"), + "description": knownvalue.StringExact("This is the description of the the terraform \n\nsample contact1"), + })), + }, + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestMatchResourceAttr("powerplatform_data_record.data_record_sample_contact1", "environment_id", regexp.MustCompile(powerplatform_helpers.GuidRegex)), + resource.TestCheckResourceAttr("powerplatform_data_record.data_record_sample_contact1", "table_logical_name", "contact"), + ), + }, + }, + }) +} + func TestAccDataRecordResource_Validate_Delete_Relationships(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { TestAccPreCheck_Basic(t) }, @@ -299,16 +579,6 @@ func TestAccDataRecordResource_Validate_Delete_Relationships(t *testing.T) { } } - // resource "powerplatform_data_record" "data_record_sample_contact1" { - // environment_id = powerplatform_environment.test_env.id - // table_logical_name = "contact" - // columns = { - // firstname = "John" - // lastname = "Doe" - // emailaddress1 = "johndoe@contoso.com" - // } - // } - resource "powerplatform_data_record" "data_record_account" { environment_id = powerplatform_environment.test_env.id table_logical_name = "account" @@ -330,6 +600,158 @@ func TestAccDataRecordResource_Validate_Delete_Relationships(t *testing.T) { }) } +func TestUnitDataRecordResource_Validate_Delete_Relationships(t *testing.T) { + httpmock.Activate() + defer httpmock.DeactivateAndReset() + + httpmock.RegisterResponder("GET", `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001?api-version=2023-06-01`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_environment_00000000-0000-0000-0000-000000000001.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27contact%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_entitydefinition_contact.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27account%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='account')?$expand=OneToManyRelationships,ManyToManyRelationships,ManyToOneRelationships`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts?$select=createdon`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json").String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, ""), nil + }) + + httpmock.RegisterResponder("PATCH", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_ref.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000010%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_contact_00000000-0000-0000-0000-000000000010.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020.json").String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)") + return resp, nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + httpmock.RegisterResponder("DELETE", `=~^https://00000000-0000-0000-0000-000000000001\.crm4\.dynamics\.com/api/data/v9\.2/([a-zA-Z]+)`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusNoContent, ""), nil + }) + + resource.Test(t, resource.TestCase{ + IsUnitTest: true, + ProtoV6ProviderFactories: TestUnitTestProtoV6ProviderFactories, + Steps: []resource.TestStep{ + { + Config: TestsProviderConfig + ` + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "John" + lastname = "Doe" + emailaddress1 = "johndoe@contoso.com" + } + } + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + + primarycontactid = { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + } + + contact_customer_accounts = [ + { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + } + ] + } + } + `, + + ConfigStateChecks: []statecheck.StateCheck{ + + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "name": knownvalue.StringExact("Sample Account"), + "primarycontactid": knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringRegexp(regexp.MustCompile(powerplatform_helpers.GuidRegex)), + }), + "contact_customer_accounts": knownvalue.SetExact([]knownvalue.Check{ + 0: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringRegexp(regexp.MustCompile(powerplatform_helpers.GuidRegex)), + }), + }), + })), + }, + }, + { + Config: TestsProviderConfig + ` + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + } + } + `, + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapExact(map[string]knownvalue.Check{ + "name": knownvalue.StringExact("Sample Account"), + })), + }, + }, + }, + }) +} + func TestAccDataRecordResource_Validate_Update_Relationships(t *testing.T) { var primarycontactidStep1 = &mock_helpers.StateValue{} @@ -614,3 +1036,334 @@ func TestAccDataRecordResource_Validate_Update_Relationships(t *testing.T) { }, }) } + +func TestUnitDataRecordResource_Validate_Update_Relationships(t *testing.T) { + + httpmock.Activate() + defer httpmock.DeactivateAndReset() + + httpmock.RegisterResponder("GET", `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001?api-version=2023-06-01`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_environment_00000000-0000-0000-0000-000000000001.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27contact%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_contact.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions%28LogicalName=%27account%27%29#$select=PrimaryIdAttribute,LogicalCollectionName`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/EntityDefinitions(LogicalName='account')?$expand=OneToManyRelationships,ManyToManyRelationships,ManyToOneRelationships`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json").String()), nil + }) + + contactCustomerAccountsInx := 0 + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts?$select=createdon`, + func(req *http.Request) (*http.Response, error) { + contactCustomerAccountsInx++ + return httpmock.NewStringResponse(http.StatusOK, httpmock.File(fmt.Sprintf("services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_%d.json", contactCustomerAccountsInx)).String()), nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + contactCustomerAccountsRefInx := 0 + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29/contact_customer_accounts/$ref`, + func(req *http.Request) (*http.Response, error) { + contactCustomerAccountsRefInx++ + return httpmock.NewStringResponse(http.StatusOK, httpmock.File(fmt.Sprintf("services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_%d.json", contactCustomerAccountsRefInx)).String()), nil + }) + + accountInx := 0 + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29`, + func(req *http.Request) (*http.Response, error) { + accountInx++ + return httpmock.NewStringResponse(http.StatusOK, httpmock.File(fmt.Sprintf("services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_%d.json", accountInx)).String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000010%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000010.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000011%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000011.json").String()), nil + }) + + httpmock.RegisterResponder("GET", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts%2800000000-0000-0000-0000-000000000012%29`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusOK, httpmock.File("services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000012.json").String()), nil + }) + + httpmock.RegisterResponder("PATCH", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts%2800000000-0000-0000-0000-000000000020%29`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts`, + func(req *http.Request) (*http.Response, error) { + + bodyAsBytes := make([]byte, req.ContentLength) + req.Body.Read(bodyAsBytes) + bodyAsString := string(bodyAsBytes) + + contactId := "" + switch bodyAsString { + case `{"firstname":"contact1"}`: + contactId = "00000000-0000-0000-0000-000000000010" + case `{"firstname":"contact2"}`: + contactId = "00000000-0000-0000-0000-000000000011" + case `{"firstname":"contact3"}`: + contactId = "00000000-0000-0000-0000-000000000012" + } + + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", fmt.Sprintf("https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(%s)", contactId)) + return resp, nil + }) + + httpmock.RegisterResponder("POST", `https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts`, + func(req *http.Request) (*http.Response, error) { + resp := httpmock.NewStringResponse(http.StatusOK, "") + resp.Header.Set("OData-EntityId", "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/accounts(00000000-0000-0000-0000-000000000020)") + return resp, nil + }) + + httpmock.RegisterResponder("DELETE", `=~^https://00000000-0000-0000-0000-000000000001\.crm4\.dynamics\.com/api/data/v9\.2/([a-zA-Z]+)`, + func(req *http.Request) (*http.Response, error) { + return httpmock.NewStringResponse(http.StatusNoContent, ""), nil + }) + + resource.Test(t, resource.TestCase{ + IsUnitTest: true, + ProtoV6ProviderFactories: TestUnitTestProtoV6ProviderFactories, + Steps: []resource.TestStep{ + { + Config: TestsProviderConfig + ` + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact1" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact2" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact2" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact3" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact3" + } + } + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + + primarycontactid = { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + } + + contact_customer_accounts = [ + { + table_logical_name = powerplatform_data_record.data_record_sample_contact1.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact1.id + }, + { + table_logical_name = powerplatform_data_record.data_record_sample_contact2.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact2.id + } + ] + } + } + `, + + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact1", tfjsonpath.New("id"), knownvalue.StringExact("00000000-0000-0000-0000-000000000010")), + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact2", tfjsonpath.New("id"), knownvalue.StringExact("00000000-0000-0000-0000-000000000011")), + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_sample_contact3", tfjsonpath.New("id"), knownvalue.StringExact("00000000-0000-0000-0000-000000000012")), + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapPartial(map[string]knownvalue.Check{ + "primarycontactid": knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000010"), + }), + "contact_customer_accounts": knownvalue.SetExact([]knownvalue.Check{ + 0: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000010"), + }), + 1: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000011"), + }), + }), + })), + }, + }, + { + Config: TestsProviderConfig + ` + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact1" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact2" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact2" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact3" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact3" + } + } + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + + primarycontactid = { + table_logical_name = powerplatform_data_record.data_record_sample_contact2.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact2.id + } + + contact_customer_accounts = [ + { + table_logical_name = powerplatform_data_record.data_record_sample_contact2.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact2.id + }, + { + table_logical_name = powerplatform_data_record.data_record_sample_contact3.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact3.id + } + ] + } + } + `, + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapPartial(map[string]knownvalue.Check{ + "primarycontactid": knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000011"), + }), + "contact_customer_accounts": knownvalue.SetExact([]knownvalue.Check{ + 0: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000011"), + }), + 1: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000012"), + }), + }), + })), + }, + }, + { + Config: TestsProviderConfig + ` + resource "powerplatform_data_record" "data_record_sample_contact1" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact1" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact2" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact2" + } + } + + resource "powerplatform_data_record" "data_record_sample_contact3" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "contact" + columns = { + firstname = "contact3" + } + } + + resource "powerplatform_data_record" "data_record_account" { + environment_id = "00000000-0000-0000-0000-000000000001" + table_logical_name = "account" + columns = { + name = "Sample Account" + + primarycontactid = { + table_logical_name = powerplatform_data_record.data_record_sample_contact2.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact2.id + } + + contact_customer_accounts = [ + { + table_logical_name = powerplatform_data_record.data_record_sample_contact2.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact2.id + }, + { + table_logical_name = powerplatform_data_record.data_record_sample_contact3.table_logical_name + data_record_id = powerplatform_data_record.data_record_sample_contact3.id + } + ] + } + } + `, + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("powerplatform_data_record.data_record_account", tfjsonpath.New("columns"), + knownvalue.MapPartial(map[string]knownvalue.Check{ + "primarycontactid": knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000011"), + }), + "contact_customer_accounts": knownvalue.SetExact([]knownvalue.Check{ + 0: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000011"), + }), + 1: knownvalue.MapExact(map[string]knownvalue.Check{ + "table_logical_name": knownvalue.StringExact("contact"), + "data_record_id": knownvalue.StringExact("00000000-0000-0000-0000-000000000012"), + }), + }), + })), + }, + }, + }, + }) +} diff --git a/internal/powerplatform/services/data_record/api_data_record.go b/internal/powerplatform/services/data_record/api_data_record.go index 8a447fb4..93693922 100644 --- a/internal/powerplatform/services/data_record/api_data_record.go +++ b/internal/powerplatform/services/data_record/api_data_record.go @@ -425,9 +425,9 @@ func (client *DataRecordClient) ApplyDataRecord(ctx context.Context, recordId, e json.Unmarshal(response.BodyAsBytes, &result) } else if response.Response.Header.Get(constants.HEADER_ODATA_ENTITY_ID) != "" { re := regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}") - match := re.FindStringSubmatch(response.Response.Header.Get(constants.HEADER_ODATA_ENTITY_ID)) + match := re.FindAllStringSubmatch(response.Response.Header.Get(constants.HEADER_ODATA_ENTITY_ID), -1) if len(match) > 0 { - result.Id = match[0] + result.Id = match[len(match)-1][0] } else { return nil, fmt.Errorf("no entity record id returned from the odata-entityid header") } @@ -435,9 +435,8 @@ func (client *DataRecordClient) ApplyDataRecord(ctx context.Context, recordId, e return nil, fmt.Errorf("no entity record id returned from the API") } - result.Id = parseLocationHeader(response, environmentUrl, entityDefinition) - err = applyRelations(ctx, client, relations, environmentId, result.Id, entityDefinition) + if err != nil { return nil, err } @@ -501,13 +500,6 @@ func (client *DataRecordClient) DeleteDataRecord(ctx context.Context, recordId s return nil } -func parseLocationHeader(response *api.ApiHttpResponse, environmentUrl string, entityDefinition *EntityDefinitionsDto) string { - locationHeader := response.GetHeader(constants.HEADER_LOCATION) - locationHeader = strings.TrimPrefix(locationHeader, fmt.Sprintf("%s/api/data/%s/%s(", environmentUrl, constants.DATAVERSE_API_VERSION, entityDefinition.LogicalCollectionName)) - locationHeader = strings.TrimSuffix(locationHeader, ")") - return locationHeader -} - func getTableLogicalNameAndDataRecordIdFromMap(nestedMap map[string]interface{}) (string, string, error) { tableLogicalName, ok := nestedMap["table_logical_name"].(string) if !ok { @@ -540,7 +532,10 @@ func applyRelations(ctx context.Context, client *DataRecordClient, relations map existingRelationsResponse := RelationApiResponse{} - apiResponse, _ := client.Api.Execute(ctx, "GET", apiUrl.String(), nil, nil, []int{http.StatusOK, http.StatusNoContent}, nil) + apiResponse, err := client.Api.Execute(ctx, "GET", apiUrl.String(), nil, nil, []int{http.StatusOK, http.StatusNoContent}, nil) + if err != nil { + return err + } json.Unmarshal(apiResponse.BodyAsBytes, &existingRelationsResponse) diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json new file mode 100644 index 00000000..ceec9121 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264380\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000010", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264380, + "modifiedon": "2024-06-12T14:13:25Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json new file mode 100644 index 00000000..4df5d79e --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json @@ -0,0 +1,10 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000010" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json new file mode 100644 index 00000000..f530b870 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json @@ -0,0 +1,8 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#Collection($ref)", + "value": [ + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_contact_00000000-0000-0000-0000-000000000010.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_contact_00000000-0000-0000-0000-000000000010.json new file mode 100644 index 00000000..366ea132 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_contact_00000000-0000-0000-0000-000000000010.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": "johndoe@contoso.com", + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": "Doe", + "telephone1": "555-555-5555", + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "John", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": "John Doe", + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "John Doe", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json new file mode 100644 index 00000000..fb843e94 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_account.json @@ -0,0 +1,4063 @@ +{ + "@odata.context": "https:///00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions(OneToManyRelationships(),ManyToManyRelationships(),ManyToOneRelationships())/$entity", + "MetadataId": "70816501-edb9-4740-a16c-6a5efbc05d84", + "HasChanged": null, + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": true, + "IsOneNoteIntegrationEnabled": true, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 0, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "account", + "ObjectTypeCode": 1, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "name", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "accountid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredAccount", + "SchemaName": "Account", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#794300", + "LogicalCollectionName": "accounts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Accounts", + "EntitySetName": "accounts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": false, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:41:52Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "Description": { + "LocalizedLabels": [ + { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateAccount", + "PrivilegeId": "d26fe964-230b-42dd-ad93-5cc879de411e", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadAccount", + "PrivilegeId": "886b280c-6396-4d56-a0a3-2c1b0a50ceb0", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteAccount", + "PrivilegeId": "7863e80f-0ab2-4d67-a641-37d9f342c7e3", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteAccount", + "PrivilegeId": "ca6c7690-c935-46b3-bfd2-abb306c2acc0", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignAccount", + "PrivilegeId": "0791ab31-e811-4fde-974b-e7c5102b09eb", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareAccount", + "PrivilegeId": "39b15dfd-09ba-4f30-a390-cac64b635850", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendAccount", + "PrivilegeId": "4e163b38-ea45-49ae-b3da-4c9dc1c77d8d", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToAccount", + "PrivilegeId": "3d6e93a2-b58e-4a4a-b642-374e4a25a6bd", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [], + "OneToManyRelationships": [ + { + "MetadataId": "28be1745-2c06-11df-80a6-00137299e1c2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_principalobjectattributeaccess", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "principalobjectattributeaccess", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_principalobjectattributeaccess", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2842b45a-85ed-4a60-9778-3629434b2863", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Faxes", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "fax", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Faxes", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_fax", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc2f96ab-08a7-4e52-b520-7d6d1fe5b46b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "slakpiinstance_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regarding", + "ReferencingEntity": "slakpiinstance", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "slakpiinstance_account", + "ReferencingEntityNavigationPropertyName": "regarding_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fa5a8e67-621e-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_PostFollows", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postfollow", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostFollows", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "98210a30-6173-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRegardings", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postregarding", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRegardings", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bb546478-6174-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRoles", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postrole", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRoles", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "d4c7f132-a91c-4d16-952d-82eb7932504a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Tasks", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "task", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Tasks", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_task", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b319a54f-0364-4ed1-a2f0-dc0bae8c384d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections1", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record1id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections1", + "ReferencingEntityNavigationPropertyName": "record1id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "426a26f8-b668-4f48-bda2-a5808e76e59d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_customer", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_customer", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": null, + "ViewId": "693d27d3-dcd2-4260-9e58-961044b2d4d3", + "AvailableOffline": true, + "MenuId": "navRelationships", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fb3d985a-c10d-4893-ad43-9c20b51f0339", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "userentityinstancedata_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "userentityinstancedata", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "userentityinstancedata_account", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b77b8ae0-9f22-4b3c-af7a-6e2fdcdfa4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthorAccount_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthoraccount", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthorAccount_accounts", + "ReferencingEntityNavigationPropertyName": "postauthoraccount_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2b987b8f-0afb-46fd-a678-4d06ee26ca2f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateBaseRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "baserecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateBaseRecord", + "ReferencingEntityNavigationPropertyName": "baserecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c8b0f425-97d8-4f39-bde9-99b1a036b600", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthor_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthor", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthor_accounts", + "ReferencingEntityNavigationPropertyName": "postauthor_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "337aa2d3-dc51-47d5-b3e9-0a00c1e4fc1a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SyncErrors", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "syncerror", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SyncErrors", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_syncerror", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ecde3961-1646-4292-a918-6cdd4f9debed", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_MailboxTrackingFolder", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "7.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "mailboxtrackingfolder", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_MailboxTrackingFolder", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "35667f12-83bd-40e3-87e8-8e60e4f2d2b1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_BulkDeleteFailures", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "bulkdeletefailure", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_BulkDeleteFailures", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9cdbdcea-b5ee-4a8d-b875-050d455757bd", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ActivityPointers", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "activitypointer", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ActivityPointers", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 20, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": "navActivities", + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ad634653-9d42-450a-8b16-0c035113b4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_SendersAccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "sendersaccount", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_SendersAccount", + "ReferencingEntityNavigationPropertyName": "sendersaccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e9577bc8-d86e-4e90-ad7d-bce8bbd80c18", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Appointments", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "appointment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Appointments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_appointment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bc9ebc45-2470-441a-b333-d3083f9fb9e4", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Socialprofile_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "socialprofile", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Socialprofile_customer_accounts", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "ff0f8b49-e2cd-45f1-b878-cbd99aa4ac56", + "AvailableOffline": true, + "MenuId": "navSocialprofiles", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fc41359e-b78a-457e-a064-cde4e4b4bf7f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Emails", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Emails", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_email", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "f50ae162-4efb-4d64-8184-d8d4921d007d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_activity_parties", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partyid", + "ReferencingEntity": "activityparty", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_activity_parties", + "ReferencingEntityNavigationPropertyName": "partyid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9b4f4019-bdc2-4dd7-9b18-58c2d087a27d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Phonecalls", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "phonecall", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Phonecalls", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_phonecall", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fd4dfeb5-0193-4396-860b-fab38be13f5c", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_partner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partnerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_partner", + "ReferencingEntityNavigationPropertyName": "partnerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "801678d1-2853-4a06-9607-66d7462fe4a7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SocialActivities", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SocialActivities", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_socialactivity", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6531e88d-0e0e-4d62-a06f-d3d43576ef2b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateMatchingRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "duplicaterecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateMatchingRecord", + "ReferencingEntityNavigationPropertyName": "duplicaterecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1ab88cd1-9c71-471b-955f-704697c80f3d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocument", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocument", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocument", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": "/_imgs/ico_18_9508.png", + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": "navSPDocuments", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9612e850-10b4-437a-a53e-e8aff65e0bd7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_actioncard", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.2.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "actioncard", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_actioncard", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_actioncard", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8fe20c46-f533-4ac9-a5ef-49e2010c2235", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_AsyncOperations", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "asyncoperation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_AsyncOperations", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "cf75831c-9aa7-49cd-814d-7a03e1e40576", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_CustomerAddress", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentid", + "ReferencingEntity": "customeraddress", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_CustomerAddress", + "ReferencingEntityNavigationPropertyName": "parentid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10, + "IsCustomizable": true, + "Icon": null, + "ViewId": "03315b35-4585-4447-a4d2-059cf79ca0fd", + "AvailableOffline": true, + "MenuId": "navAddresses", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57512d8c-b06d-477e-b28a-0e7fa4d77cf8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Annotation", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "annotation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Annotation", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "697d2a87-4698-42b9-8f29-f703a991d24a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Letters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "letter", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Letters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_letter", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e2664de7-2cd4-47bc-8623-57badf64a65f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_RecurringAppointmentMasters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "recurringappointmentmaster", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_RecurringAppointmentMasters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_recurringappointmentmaster", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a5508e2d-4089-4a54-bf6e-0c093fc76c88", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_EmailSender", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "emailsender", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_EmailSender", + "ReferencingEntityNavigationPropertyName": "emailsender_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "11b2ab2e-8958-4401-a0bd-2073814f2741", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ProcessSessions", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "processsession", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ProcessSessions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 110, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc9b80f8-c781-46d8-9fd6-a3b610836975", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "contact_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentcustomerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "contact_customer_accounts", + "ReferencingEntityNavigationPropertyName": "parentcustomerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001210", + "AvailableOffline": true, + "MenuId": "navContacts", + "QueryApi": "CRMAccount.RetrieveSubContacts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "da581321-ae9a-4503-9288-0ea32acad00e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocumentLocation", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocumentlocation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocumentLocation", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c32a95ba-4540-4ed4-95a6-121a085d241f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections2", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record2id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections2", + "ReferencingEntityNavigationPropertyName": "record2id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1800bd86-ad1f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_chats", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "chat", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_chats", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_chat", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "afa6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_contact_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_contact_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100500, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "97e7dba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_inviteredemptions", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_inviteredemption", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_inviteredemptions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_inviteredemption", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6eeadba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_portalcomments", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_portalcomment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_portalcomments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_portalcomment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6e51dbaf-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "adx_invitation_assigntoaccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "adx_assigntoaccount", + "ReferencingEntity": "adx_invitation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "adx_invitation_assigntoaccount", + "ReferencingEntityNavigationPropertyName": "adx_assignToAccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ], + "ManyToManyRelationships": [ + { + "MetadataId": "c11012be-c11f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "powerpagecomponent_mspp_webrole_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "ManyToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "Entity1LogicalName": "powerpagecomponent", + "Entity2LogicalName": "account", + "IntersectEntityName": "powerpagecomponent_mspp_webrole_account", + "Entity1IntersectAttribute": "powerpagecomponentid", + "Entity2IntersectAttribute": "accountid", + "Entity1NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "Entity2NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "Entity1AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100600, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + } + }, + "Entity2AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100100, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + } + } + } + ], + "ManyToOneRelationships": [ + { + "MetadataId": "410707b1-9554-4cd9-8437-6608b1802904", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_primary_contact", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "contactid", + "ReferencedEntity": "contact", + "ReferencingAttribute": "primarycontactid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_primary_contact", + "ReferencingEntityNavigationPropertyName": "primarycontactid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a6b48e23-fada-4b7f-8655-530bba050765", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "system_user_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "preferredsystemuserid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "system_user_accounts", + "ReferencingEntityNavigationPropertyName": "preferredsystemuserid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9967fe7d-84ee-4a26-9ad7-a8fdbdfa2316", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "createdbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_createdby", + "ReferencingEntityNavigationPropertyName": "CreatedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8be02a9d-0776-4c76-b35f-1c92dd791d9e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedby", + "ReferencingEntityNavigationPropertyName": "modifiedby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5b4942d5-1fcd-49ca-91c0-2737f5f104f3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "lk_account_entityimage", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "imagedescriptorid", + "ReferencedEntity": "imagedescriptor", + "ReferencingAttribute": "entityimageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_account_entityimage", + "ReferencingEntityNavigationPropertyName": "entityimageid_imagedescriptor", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6ad8133d-2f1e-4c43-a3da-460bacb3d6a5", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "business_unit_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "businessunitid", + "ReferencedEntity": "businessunit", + "ReferencingAttribute": "owningbusinessunit", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "business_unit_accounts", + "ReferencingEntityNavigationPropertyName": "owningbusinessunit", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1742bd26-9b6b-4100-becf-4a5ea2f0d819", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "transactioncurrency_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "transactioncurrencyid", + "ReferencedEntity": "transactioncurrency", + "ReferencingAttribute": "transactioncurrencyid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "transactioncurrency_account", + "ReferencingEntityNavigationPropertyName": "transactioncurrencyid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Restrict", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5e98d042-00bb-494a-b231-eadc8d4a94ec", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "user_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "owninguser", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "user_accounts", + "ReferencingEntityNavigationPropertyName": "owninguser", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b6620960-51ad-4586-b284-5777f4b77ce2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdonbehalfby", + "ReferencingEntityNavigationPropertyName": "createdonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b74b7062-1d03-436e-b4de-f90ed78d5412", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "processstage_account", + "SecurityTypes": "ParentChild", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "processstageid", + "ReferencedEntity": "processstage", + "ReferencingAttribute": "stageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "processstage_account", + "ReferencingEntityNavigationPropertyName": "stageid_processstage", + "RelationshipBehavior": 2, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "0d17829c-5065-48b8-b94b-11105febcd15", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "manualsla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slaid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "manualsla_account", + "ReferencingEntityNavigationPropertyName": "sla_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navAccounts", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "54ec5650-4a4f-4da1-b782-0a4a8e1e3e84", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdby", + "ReferencingEntityNavigationPropertyName": "createdby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "4f4276b7-3d18-4fb1-99b8-05c833c81a3e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "modifiedbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_modifiedby", + "ReferencingEntityNavigationPropertyName": "ModifiedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "12140b38-c019-42ad-8349-8b939b839939", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "sla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slainvokedid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "sla_account", + "ReferencingEntityNavigationPropertyName": "slainvokedid_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2074fc1d-84a2-48ac-a47c-fcf1d249a052", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedonbehalfby", + "ReferencingEntityNavigationPropertyName": "modifiedonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "55aca456-12e1-45d8-989e-dce78f9a31b8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "team_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "teamid", + "ReferencedEntity": "team", + "ReferencingAttribute": "owningteam", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "team_accounts", + "ReferencingEntityNavigationPropertyName": "owningteam", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "976f5d41-2909-4224-90fb-02490d9b65f0", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "owner_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "ownerid", + "ReferencedEntity": "owner", + "ReferencingAttribute": "ownerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "owner_accounts", + "ReferencingEntityNavigationPropertyName": "ownerid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_contact.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_contact.json new file mode 100644 index 00000000..b5aff47d --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_entitydefinition_contact.json @@ -0,0 +1,356 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions/$entity", + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": false, + "IsOneNoteIntegrationEnabled": false, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 10, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "contact", + "ObjectTypeCode": 2, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "fullname", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "contactid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredContact", + "SchemaName": "Contact", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#005088", + "LogicalCollectionName": "contacts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Contacts", + "EntitySetName": "contacts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": true, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:50:48Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "MetadataId": "608861bc-50a4-4c5f-a02c-21fe1943e2cf", + "HasChanged": null, + "Description": { + "LocalizedLabels": [ + { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateContact", + "PrivilegeId": "a8bff87f-0df0-41d4-babd-f093faf1e32c", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadContact", + "PrivilegeId": "ba09ec92-12c4-4312-ba16-5715c2cbd6da", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteContact", + "PrivilegeId": "65c22075-4e09-4f39-baec-e4bc3a950686", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteContact", + "PrivilegeId": "2ddded47-7488-4039-b9ff-81defe81fdd3", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignContact", + "PrivilegeId": "43c63782-c7c6-471c-bd9c-24f79bf8c2a1", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareContact", + "PrivilegeId": "ae756940-61ff-4bd3-bfbb-f2b0d542c608", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendContact", + "PrivilegeId": "2b16ba12-6ab4-4ad2-b7c0-8641d2d6dff2", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToContact", + "PrivilegeId": "158327b5-f4c1-448e-93d1-5f135126665b", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_environment_00000000-0000-0000-0000-000000000001.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_environment_00000000-0000-0000-0000-000000000001.json new file mode 100644 index 00000000..cf52a46b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Create/get_environment_00000000-0000-0000-0000-000000000001.json @@ -0,0 +1,199 @@ +{ + "id": "/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001", + "type": "Microsoft.BusinessAppPlatform/scopes/environments", + "location": "europe", + "name": "00000000-0000-0000-0000-000000000001", + "properties": { + "tenantId": "123", + "azureRegion": "westeurope", + "displayName": "displayname", + "createdTime": "2023-09-27T07:08:27.6057592Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "displayName": "admin", + "email": "admin", + "type": "User", + "tenantId": "123", + "userPrincipalName": "admin" + }, + "billingPolicy": { + "id": "00000000-0000-0000-0000-000000000001", + "name": "name", + "type": "TenantOwned", + "status": "Enabled", + "location": "switzerland", + "powerAutomatePolicy": { + "cloudFlowRunsPayAsYouGoState": "Enabled", + "desktopFlowUnattendedRunsPayAsYouGoState": "Enabled", + "desktopFlowAttendedRunsPayAsYouGoState": "Enabled" + }, + "powerAppsPolicy": { + "payAsYouGoState": "Enabled" + }, + "storagePolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPlatformRequestsPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPagesPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerVirtualAgentPolicy": { + "payAsYouGoState": "Enabled" + }, + "billingInstrument": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroup": "rg-terraform", + "location": "switzerland", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-terraform/providers/Microsoft.PowerPlatform/accounts/name", + "provisioningStatus": "Succeeded" + }, + "createdOn": "2023-12-07T13:08:24Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + }, + "lastModifiedOn": "2023-12-07T13:08:24Z", + "lastModifiedBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + } + }, + "lastModifiedTime": "2023-09-27T07:08:34.9205145Z", + "provisioningState": "Succeeded", + "creationType": "User", + "environmentSku": "Sandbox", + "isDefault": false, + "capacity": [ + { + "capacityType": "Database", + "actualConsumption": 885.0391, + "ratedConsumption": 1024.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "File", + "actualConsumption": 1187.142, + "ratedConsumption": 1187.142, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "Log", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsDatabase", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsFile", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + } + ], + "addons": [], + "clientUris": { + "admin": "https://admin.powerplatform.microsoft.com/environments/environment/456/hub", + "maker": "https://make.powerapps.com/environments/456/home" + }, + "runtimeEndpoints": { + "microsoft.BusinessAppPlatform": "https://europe.api.bap.microsoft.com", + "microsoft.CommonDataModel": "https://europe.api.cds.microsoft.com", + "microsoft.PowerApps": "https://europe.api.powerapps.com", + "microsoft.PowerAppsAdvisor": "https://europe.api.advisor.powerapps.com", + "microsoft.PowerVirtualAgents": "https://powervamg.eu-il107.gateway.prod.island.powerapps.com", + "microsoft.ApiManagement": "https://management.EUROPE.azure-apihub.net", + "microsoft.Flow": "https://emea.api.flow.microsoft.com" + }, + "databaseType": "CommonDataService", + "linkedEnvironmentMetadata": { + "resourceId": "orgid", + "friendlyName": "displayname", + "uniqueName": "00000000-0000-0000-0000-000000000001", + "domainName": "00000000-0000-0000-0000-000000000001", + "version": "9.2.23092.00206", + "instanceUrl": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/", + "instanceApiUrl": "https://00000000-0000-0000-0000-000000000001.api.crm4.dynamics.com", + "baseLanguage": 1033, + "instanceState": "Ready", + "createdTime": "2023-09-27T07:08:28.957Z", + "backgroundOperationsState": "Enabled", + "scaleGroup": "EURCRMLIVESG705", + "platformSku": "Standard", + "schemaType": "Standard" + }, + "trialScenarioType": "None", + "notificationMetadata": { + "state": "NotSpecified", + "branding": "NotSpecific" + }, + "retentionPeriod": "P7D", + "states": { + "management": { + "id": "Ready" + }, + "runtime": { + "runtimeReasonCode": "NotSpecified", + "requestedBy": { + "displayName": "SYSTEM", + "type": "NotSpecified" + }, + "id": "Enabled" + } + }, + "updateCadence": { + "id": "Frequent" + }, + "retentionDetails": { + "retentionPeriod": "P7D", + "backupsAvailableFromDateTime": "2023-10-03T09:23:06.1717665Z" + }, + "protectionStatus": { + "keyManagedBy": "Microsoft" + }, + "cluster": { + "category": "Prod", + "number": "107", + "uriSuffix": "eu-il107.gateway.prod.island", + "geoShortName": "EU", + "environment": "Prod" + }, + "connectedGroups": [], + "lifecycleOperationsEnforcement": { + "allowedOperations": [ + { + "type": { + "id": "DisableGovernanceConfiguration" + }, + "reason": { + "message": "DisableGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + }, + { + "type": { + "id": "UpdateGovernanceConfiguration" + }, + "reason": { + "message": "UpdateGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + } + ] + }, + "governanceConfiguration": { + "protectionLevel": "Basic" + } + } +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020.json new file mode 100644 index 00000000..ceec9121 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264380\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000010", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264380, + "modifiedon": "2024-06-12T14:13:25Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json new file mode 100644 index 00000000..4df5d79e --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json @@ -0,0 +1,10 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000010" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_ref.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_ref.json new file mode 100644 index 00000000..f530b870 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_account_00000000-0000-0000-0000-000000000020_ref.json @@ -0,0 +1,8 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#Collection($ref)", + "value": [ + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_contact_00000000-0000-0000-0000-000000000010.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_contact_00000000-0000-0000-0000-000000000010.json new file mode 100644 index 00000000..366ea132 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_contact_00000000-0000-0000-0000-000000000010.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": "johndoe@contoso.com", + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": "Doe", + "telephone1": "555-555-5555", + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "John", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": "John Doe", + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "John Doe", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json new file mode 100644 index 00000000..fb843e94 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_account.json @@ -0,0 +1,4063 @@ +{ + "@odata.context": "https:///00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions(OneToManyRelationships(),ManyToManyRelationships(),ManyToOneRelationships())/$entity", + "MetadataId": "70816501-edb9-4740-a16c-6a5efbc05d84", + "HasChanged": null, + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": true, + "IsOneNoteIntegrationEnabled": true, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 0, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "account", + "ObjectTypeCode": 1, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "name", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "accountid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredAccount", + "SchemaName": "Account", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#794300", + "LogicalCollectionName": "accounts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Accounts", + "EntitySetName": "accounts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": false, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:41:52Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "Description": { + "LocalizedLabels": [ + { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateAccount", + "PrivilegeId": "d26fe964-230b-42dd-ad93-5cc879de411e", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadAccount", + "PrivilegeId": "886b280c-6396-4d56-a0a3-2c1b0a50ceb0", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteAccount", + "PrivilegeId": "7863e80f-0ab2-4d67-a641-37d9f342c7e3", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteAccount", + "PrivilegeId": "ca6c7690-c935-46b3-bfd2-abb306c2acc0", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignAccount", + "PrivilegeId": "0791ab31-e811-4fde-974b-e7c5102b09eb", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareAccount", + "PrivilegeId": "39b15dfd-09ba-4f30-a390-cac64b635850", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendAccount", + "PrivilegeId": "4e163b38-ea45-49ae-b3da-4c9dc1c77d8d", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToAccount", + "PrivilegeId": "3d6e93a2-b58e-4a4a-b642-374e4a25a6bd", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [], + "OneToManyRelationships": [ + { + "MetadataId": "28be1745-2c06-11df-80a6-00137299e1c2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_principalobjectattributeaccess", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "principalobjectattributeaccess", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_principalobjectattributeaccess", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2842b45a-85ed-4a60-9778-3629434b2863", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Faxes", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "fax", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Faxes", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_fax", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc2f96ab-08a7-4e52-b520-7d6d1fe5b46b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "slakpiinstance_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regarding", + "ReferencingEntity": "slakpiinstance", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "slakpiinstance_account", + "ReferencingEntityNavigationPropertyName": "regarding_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fa5a8e67-621e-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_PostFollows", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postfollow", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostFollows", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "98210a30-6173-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRegardings", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postregarding", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRegardings", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bb546478-6174-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRoles", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postrole", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRoles", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "d4c7f132-a91c-4d16-952d-82eb7932504a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Tasks", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "task", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Tasks", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_task", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b319a54f-0364-4ed1-a2f0-dc0bae8c384d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections1", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record1id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections1", + "ReferencingEntityNavigationPropertyName": "record1id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "426a26f8-b668-4f48-bda2-a5808e76e59d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_customer", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_customer", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": null, + "ViewId": "693d27d3-dcd2-4260-9e58-961044b2d4d3", + "AvailableOffline": true, + "MenuId": "navRelationships", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fb3d985a-c10d-4893-ad43-9c20b51f0339", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "userentityinstancedata_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "userentityinstancedata", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "userentityinstancedata_account", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b77b8ae0-9f22-4b3c-af7a-6e2fdcdfa4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthorAccount_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthoraccount", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthorAccount_accounts", + "ReferencingEntityNavigationPropertyName": "postauthoraccount_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2b987b8f-0afb-46fd-a678-4d06ee26ca2f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateBaseRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "baserecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateBaseRecord", + "ReferencingEntityNavigationPropertyName": "baserecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c8b0f425-97d8-4f39-bde9-99b1a036b600", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthor_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthor", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthor_accounts", + "ReferencingEntityNavigationPropertyName": "postauthor_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "337aa2d3-dc51-47d5-b3e9-0a00c1e4fc1a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SyncErrors", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "syncerror", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SyncErrors", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_syncerror", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ecde3961-1646-4292-a918-6cdd4f9debed", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_MailboxTrackingFolder", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "7.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "mailboxtrackingfolder", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_MailboxTrackingFolder", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "35667f12-83bd-40e3-87e8-8e60e4f2d2b1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_BulkDeleteFailures", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "bulkdeletefailure", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_BulkDeleteFailures", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9cdbdcea-b5ee-4a8d-b875-050d455757bd", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ActivityPointers", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "activitypointer", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ActivityPointers", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 20, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": "navActivities", + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ad634653-9d42-450a-8b16-0c035113b4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_SendersAccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "sendersaccount", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_SendersAccount", + "ReferencingEntityNavigationPropertyName": "sendersaccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e9577bc8-d86e-4e90-ad7d-bce8bbd80c18", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Appointments", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "appointment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Appointments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_appointment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bc9ebc45-2470-441a-b333-d3083f9fb9e4", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Socialprofile_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "socialprofile", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Socialprofile_customer_accounts", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "ff0f8b49-e2cd-45f1-b878-cbd99aa4ac56", + "AvailableOffline": true, + "MenuId": "navSocialprofiles", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fc41359e-b78a-457e-a064-cde4e4b4bf7f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Emails", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Emails", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_email", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "f50ae162-4efb-4d64-8184-d8d4921d007d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_activity_parties", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partyid", + "ReferencingEntity": "activityparty", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_activity_parties", + "ReferencingEntityNavigationPropertyName": "partyid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9b4f4019-bdc2-4dd7-9b18-58c2d087a27d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Phonecalls", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "phonecall", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Phonecalls", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_phonecall", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fd4dfeb5-0193-4396-860b-fab38be13f5c", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_partner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partnerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_partner", + "ReferencingEntityNavigationPropertyName": "partnerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "801678d1-2853-4a06-9607-66d7462fe4a7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SocialActivities", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SocialActivities", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_socialactivity", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6531e88d-0e0e-4d62-a06f-d3d43576ef2b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateMatchingRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "duplicaterecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateMatchingRecord", + "ReferencingEntityNavigationPropertyName": "duplicaterecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1ab88cd1-9c71-471b-955f-704697c80f3d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocument", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocument", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocument", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": "/_imgs/ico_18_9508.png", + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": "navSPDocuments", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9612e850-10b4-437a-a53e-e8aff65e0bd7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_actioncard", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.2.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "actioncard", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_actioncard", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_actioncard", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8fe20c46-f533-4ac9-a5ef-49e2010c2235", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_AsyncOperations", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "asyncoperation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_AsyncOperations", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "cf75831c-9aa7-49cd-814d-7a03e1e40576", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_CustomerAddress", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentid", + "ReferencingEntity": "customeraddress", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_CustomerAddress", + "ReferencingEntityNavigationPropertyName": "parentid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10, + "IsCustomizable": true, + "Icon": null, + "ViewId": "03315b35-4585-4447-a4d2-059cf79ca0fd", + "AvailableOffline": true, + "MenuId": "navAddresses", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57512d8c-b06d-477e-b28a-0e7fa4d77cf8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Annotation", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "annotation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Annotation", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "697d2a87-4698-42b9-8f29-f703a991d24a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Letters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "letter", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Letters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_letter", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e2664de7-2cd4-47bc-8623-57badf64a65f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_RecurringAppointmentMasters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "recurringappointmentmaster", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_RecurringAppointmentMasters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_recurringappointmentmaster", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a5508e2d-4089-4a54-bf6e-0c093fc76c88", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_EmailSender", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "emailsender", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_EmailSender", + "ReferencingEntityNavigationPropertyName": "emailsender_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "11b2ab2e-8958-4401-a0bd-2073814f2741", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ProcessSessions", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "processsession", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ProcessSessions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 110, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc9b80f8-c781-46d8-9fd6-a3b610836975", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "contact_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentcustomerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "contact_customer_accounts", + "ReferencingEntityNavigationPropertyName": "parentcustomerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001210", + "AvailableOffline": true, + "MenuId": "navContacts", + "QueryApi": "CRMAccount.RetrieveSubContacts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "da581321-ae9a-4503-9288-0ea32acad00e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocumentLocation", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocumentlocation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocumentLocation", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c32a95ba-4540-4ed4-95a6-121a085d241f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections2", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record2id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections2", + "ReferencingEntityNavigationPropertyName": "record2id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1800bd86-ad1f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_chats", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "chat", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_chats", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_chat", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "afa6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_contact_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_contact_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100500, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "97e7dba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_inviteredemptions", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_inviteredemption", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_inviteredemptions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_inviteredemption", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6eeadba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_portalcomments", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_portalcomment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_portalcomments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_portalcomment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6e51dbaf-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "adx_invitation_assigntoaccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "adx_assigntoaccount", + "ReferencingEntity": "adx_invitation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "adx_invitation_assigntoaccount", + "ReferencingEntityNavigationPropertyName": "adx_assignToAccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ], + "ManyToManyRelationships": [ + { + "MetadataId": "c11012be-c11f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "powerpagecomponent_mspp_webrole_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "ManyToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "Entity1LogicalName": "powerpagecomponent", + "Entity2LogicalName": "account", + "IntersectEntityName": "powerpagecomponent_mspp_webrole_account", + "Entity1IntersectAttribute": "powerpagecomponentid", + "Entity2IntersectAttribute": "accountid", + "Entity1NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "Entity2NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "Entity1AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100600, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + } + }, + "Entity2AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100100, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + } + } + } + ], + "ManyToOneRelationships": [ + { + "MetadataId": "410707b1-9554-4cd9-8437-6608b1802904", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_primary_contact", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "contactid", + "ReferencedEntity": "contact", + "ReferencingAttribute": "primarycontactid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_primary_contact", + "ReferencingEntityNavigationPropertyName": "primarycontactid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a6b48e23-fada-4b7f-8655-530bba050765", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "system_user_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "preferredsystemuserid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "system_user_accounts", + "ReferencingEntityNavigationPropertyName": "preferredsystemuserid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9967fe7d-84ee-4a26-9ad7-a8fdbdfa2316", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "createdbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_createdby", + "ReferencingEntityNavigationPropertyName": "CreatedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8be02a9d-0776-4c76-b35f-1c92dd791d9e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedby", + "ReferencingEntityNavigationPropertyName": "modifiedby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5b4942d5-1fcd-49ca-91c0-2737f5f104f3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "lk_account_entityimage", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "imagedescriptorid", + "ReferencedEntity": "imagedescriptor", + "ReferencingAttribute": "entityimageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_account_entityimage", + "ReferencingEntityNavigationPropertyName": "entityimageid_imagedescriptor", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6ad8133d-2f1e-4c43-a3da-460bacb3d6a5", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "business_unit_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "businessunitid", + "ReferencedEntity": "businessunit", + "ReferencingAttribute": "owningbusinessunit", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "business_unit_accounts", + "ReferencingEntityNavigationPropertyName": "owningbusinessunit", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1742bd26-9b6b-4100-becf-4a5ea2f0d819", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "transactioncurrency_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "transactioncurrencyid", + "ReferencedEntity": "transactioncurrency", + "ReferencingAttribute": "transactioncurrencyid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "transactioncurrency_account", + "ReferencingEntityNavigationPropertyName": "transactioncurrencyid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Restrict", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5e98d042-00bb-494a-b231-eadc8d4a94ec", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "user_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "owninguser", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "user_accounts", + "ReferencingEntityNavigationPropertyName": "owninguser", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b6620960-51ad-4586-b284-5777f4b77ce2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdonbehalfby", + "ReferencingEntityNavigationPropertyName": "createdonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b74b7062-1d03-436e-b4de-f90ed78d5412", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "processstage_account", + "SecurityTypes": "ParentChild", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "processstageid", + "ReferencedEntity": "processstage", + "ReferencingAttribute": "stageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "processstage_account", + "ReferencingEntityNavigationPropertyName": "stageid_processstage", + "RelationshipBehavior": 2, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "0d17829c-5065-48b8-b94b-11105febcd15", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "manualsla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slaid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "manualsla_account", + "ReferencingEntityNavigationPropertyName": "sla_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navAccounts", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "54ec5650-4a4f-4da1-b782-0a4a8e1e3e84", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdby", + "ReferencingEntityNavigationPropertyName": "createdby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "4f4276b7-3d18-4fb1-99b8-05c833c81a3e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "modifiedbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_modifiedby", + "ReferencingEntityNavigationPropertyName": "ModifiedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "12140b38-c019-42ad-8349-8b939b839939", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "sla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slainvokedid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "sla_account", + "ReferencingEntityNavigationPropertyName": "slainvokedid_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2074fc1d-84a2-48ac-a47c-fcf1d249a052", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedonbehalfby", + "ReferencingEntityNavigationPropertyName": "modifiedonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "55aca456-12e1-45d8-989e-dce78f9a31b8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "team_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "teamid", + "ReferencedEntity": "team", + "ReferencingAttribute": "owningteam", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "team_accounts", + "ReferencingEntityNavigationPropertyName": "owningteam", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "976f5d41-2909-4224-90fb-02490d9b65f0", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "owner_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "ownerid", + "ReferencedEntity": "owner", + "ReferencingAttribute": "ownerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "owner_accounts", + "ReferencingEntityNavigationPropertyName": "ownerid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_contact.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_contact.json new file mode 100644 index 00000000..b5aff47d --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_entitydefinition_contact.json @@ -0,0 +1,356 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions/$entity", + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": false, + "IsOneNoteIntegrationEnabled": false, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 10, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "contact", + "ObjectTypeCode": 2, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "fullname", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "contactid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredContact", + "SchemaName": "Contact", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#005088", + "LogicalCollectionName": "contacts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Contacts", + "EntitySetName": "contacts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": true, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:50:48Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "MetadataId": "608861bc-50a4-4c5f-a02c-21fe1943e2cf", + "HasChanged": null, + "Description": { + "LocalizedLabels": [ + { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateContact", + "PrivilegeId": "a8bff87f-0df0-41d4-babd-f093faf1e32c", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadContact", + "PrivilegeId": "ba09ec92-12c4-4312-ba16-5715c2cbd6da", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteContact", + "PrivilegeId": "65c22075-4e09-4f39-baec-e4bc3a950686", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteContact", + "PrivilegeId": "2ddded47-7488-4039-b9ff-81defe81fdd3", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignContact", + "PrivilegeId": "43c63782-c7c6-471c-bd9c-24f79bf8c2a1", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareContact", + "PrivilegeId": "ae756940-61ff-4bd3-bfbb-f2b0d542c608", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendContact", + "PrivilegeId": "2b16ba12-6ab4-4ad2-b7c0-8641d2d6dff2", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToContact", + "PrivilegeId": "158327b5-f4c1-448e-93d1-5f135126665b", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_environment_00000000-0000-0000-0000-000000000001.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_environment_00000000-0000-0000-0000-000000000001.json new file mode 100644 index 00000000..cf52a46b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Delete/get_environment_00000000-0000-0000-0000-000000000001.json @@ -0,0 +1,199 @@ +{ + "id": "/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001", + "type": "Microsoft.BusinessAppPlatform/scopes/environments", + "location": "europe", + "name": "00000000-0000-0000-0000-000000000001", + "properties": { + "tenantId": "123", + "azureRegion": "westeurope", + "displayName": "displayname", + "createdTime": "2023-09-27T07:08:27.6057592Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "displayName": "admin", + "email": "admin", + "type": "User", + "tenantId": "123", + "userPrincipalName": "admin" + }, + "billingPolicy": { + "id": "00000000-0000-0000-0000-000000000001", + "name": "name", + "type": "TenantOwned", + "status": "Enabled", + "location": "switzerland", + "powerAutomatePolicy": { + "cloudFlowRunsPayAsYouGoState": "Enabled", + "desktopFlowUnattendedRunsPayAsYouGoState": "Enabled", + "desktopFlowAttendedRunsPayAsYouGoState": "Enabled" + }, + "powerAppsPolicy": { + "payAsYouGoState": "Enabled" + }, + "storagePolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPlatformRequestsPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPagesPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerVirtualAgentPolicy": { + "payAsYouGoState": "Enabled" + }, + "billingInstrument": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroup": "rg-terraform", + "location": "switzerland", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-terraform/providers/Microsoft.PowerPlatform/accounts/name", + "provisioningStatus": "Succeeded" + }, + "createdOn": "2023-12-07T13:08:24Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + }, + "lastModifiedOn": "2023-12-07T13:08:24Z", + "lastModifiedBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + } + }, + "lastModifiedTime": "2023-09-27T07:08:34.9205145Z", + "provisioningState": "Succeeded", + "creationType": "User", + "environmentSku": "Sandbox", + "isDefault": false, + "capacity": [ + { + "capacityType": "Database", + "actualConsumption": 885.0391, + "ratedConsumption": 1024.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "File", + "actualConsumption": 1187.142, + "ratedConsumption": 1187.142, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "Log", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsDatabase", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsFile", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + } + ], + "addons": [], + "clientUris": { + "admin": "https://admin.powerplatform.microsoft.com/environments/environment/456/hub", + "maker": "https://make.powerapps.com/environments/456/home" + }, + "runtimeEndpoints": { + "microsoft.BusinessAppPlatform": "https://europe.api.bap.microsoft.com", + "microsoft.CommonDataModel": "https://europe.api.cds.microsoft.com", + "microsoft.PowerApps": "https://europe.api.powerapps.com", + "microsoft.PowerAppsAdvisor": "https://europe.api.advisor.powerapps.com", + "microsoft.PowerVirtualAgents": "https://powervamg.eu-il107.gateway.prod.island.powerapps.com", + "microsoft.ApiManagement": "https://management.EUROPE.azure-apihub.net", + "microsoft.Flow": "https://emea.api.flow.microsoft.com" + }, + "databaseType": "CommonDataService", + "linkedEnvironmentMetadata": { + "resourceId": "orgid", + "friendlyName": "displayname", + "uniqueName": "00000000-0000-0000-0000-000000000001", + "domainName": "00000000-0000-0000-0000-000000000001", + "version": "9.2.23092.00206", + "instanceUrl": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/", + "instanceApiUrl": "https://00000000-0000-0000-0000-000000000001.api.crm4.dynamics.com", + "baseLanguage": 1033, + "instanceState": "Ready", + "createdTime": "2023-09-27T07:08:28.957Z", + "backgroundOperationsState": "Enabled", + "scaleGroup": "EURCRMLIVESG705", + "platformSku": "Standard", + "schemaType": "Standard" + }, + "trialScenarioType": "None", + "notificationMetadata": { + "state": "NotSpecified", + "branding": "NotSpecific" + }, + "retentionPeriod": "P7D", + "states": { + "management": { + "id": "Ready" + }, + "runtime": { + "runtimeReasonCode": "NotSpecified", + "requestedBy": { + "displayName": "SYSTEM", + "type": "NotSpecified" + }, + "id": "Enabled" + } + }, + "updateCadence": { + "id": "Frequent" + }, + "retentionDetails": { + "retentionPeriod": "P7D", + "backupsAvailableFromDateTime": "2023-10-03T09:23:06.1717665Z" + }, + "protectionStatus": { + "keyManagedBy": "Microsoft" + }, + "cluster": { + "category": "Prod", + "number": "107", + "uriSuffix": "eu-il107.gateway.prod.island", + "geoShortName": "EU", + "environment": "Prod" + }, + "connectedGroups": [], + "lifecycleOperationsEnforcement": { + "allowedOperations": [ + { + "type": { + "id": "DisableGovernanceConfiguration" + }, + "reason": { + "message": "DisableGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + }, + { + "type": { + "id": "UpdateGovernanceConfiguration" + }, + "reason": { + "message": "UpdateGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + } + ] + }, + "governanceConfiguration": { + "protectionLevel": "Basic" + } + } +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_1.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_1.json new file mode 100644 index 00000000..366ea132 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_1.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": "johndoe@contoso.com", + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": "Doe", + "telephone1": "555-555-5555", + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "John", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": "John Doe", + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "John Doe", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_2.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_2.json new file mode 100644 index 00000000..366ea132 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_2.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": "johndoe@contoso.com", + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": "Doe", + "telephone1": "555-555-5555", + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "John", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": "John Doe", + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "John Doe", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_3.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_3.json new file mode 100644 index 00000000..68bb2877 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_contact_00000000-0000-0000-0000-000000000010_3.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-11", + "merged": false, + "territorycode": 1, + "emailaddress1": "johndoe@contoso.com1", + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": "Doe1", + "telephone1": "555-555-55551", + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact1", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "John1", + "anniversary": "2024-04-11", + "donotpostalmail": false, + "yomifullname": "John1 Doe1", + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "John1 Doe1", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5100000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_entitydefinition_contact.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_entitydefinition_contact.json new file mode 100644 index 00000000..b5aff47d --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_entitydefinition_contact.json @@ -0,0 +1,356 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions/$entity", + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": false, + "IsOneNoteIntegrationEnabled": false, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 10, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "contact", + "ObjectTypeCode": 2, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "fullname", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "contactid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredContact", + "SchemaName": "Contact", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#005088", + "LogicalCollectionName": "contacts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Contacts", + "EntitySetName": "contacts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": true, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:50:48Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "MetadataId": "608861bc-50a4-4c5f-a02c-21fe1943e2cf", + "HasChanged": null, + "Description": { + "LocalizedLabels": [ + { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateContact", + "PrivilegeId": "a8bff87f-0df0-41d4-babd-f093faf1e32c", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadContact", + "PrivilegeId": "ba09ec92-12c4-4312-ba16-5715c2cbd6da", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteContact", + "PrivilegeId": "65c22075-4e09-4f39-baec-e4bc3a950686", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteContact", + "PrivilegeId": "2ddded47-7488-4039-b9ff-81defe81fdd3", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignContact", + "PrivilegeId": "43c63782-c7c6-471c-bd9c-24f79bf8c2a1", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareContact", + "PrivilegeId": "ae756940-61ff-4bd3-bfbb-f2b0d542c608", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendContact", + "PrivilegeId": "2b16ba12-6ab4-4ad2-b7c0-8641d2d6dff2", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToContact", + "PrivilegeId": "158327b5-f4c1-448e-93d1-5f135126665b", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_environment_00000000-0000-0000-0000-000000000001.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_environment_00000000-0000-0000-0000-000000000001.json new file mode 100644 index 00000000..cf52a46b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update/get_environment_00000000-0000-0000-0000-000000000001.json @@ -0,0 +1,199 @@ +{ + "id": "/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001", + "type": "Microsoft.BusinessAppPlatform/scopes/environments", + "location": "europe", + "name": "00000000-0000-0000-0000-000000000001", + "properties": { + "tenantId": "123", + "azureRegion": "westeurope", + "displayName": "displayname", + "createdTime": "2023-09-27T07:08:27.6057592Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "displayName": "admin", + "email": "admin", + "type": "User", + "tenantId": "123", + "userPrincipalName": "admin" + }, + "billingPolicy": { + "id": "00000000-0000-0000-0000-000000000001", + "name": "name", + "type": "TenantOwned", + "status": "Enabled", + "location": "switzerland", + "powerAutomatePolicy": { + "cloudFlowRunsPayAsYouGoState": "Enabled", + "desktopFlowUnattendedRunsPayAsYouGoState": "Enabled", + "desktopFlowAttendedRunsPayAsYouGoState": "Enabled" + }, + "powerAppsPolicy": { + "payAsYouGoState": "Enabled" + }, + "storagePolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPlatformRequestsPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPagesPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerVirtualAgentPolicy": { + "payAsYouGoState": "Enabled" + }, + "billingInstrument": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroup": "rg-terraform", + "location": "switzerland", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-terraform/providers/Microsoft.PowerPlatform/accounts/name", + "provisioningStatus": "Succeeded" + }, + "createdOn": "2023-12-07T13:08:24Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + }, + "lastModifiedOn": "2023-12-07T13:08:24Z", + "lastModifiedBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + } + }, + "lastModifiedTime": "2023-09-27T07:08:34.9205145Z", + "provisioningState": "Succeeded", + "creationType": "User", + "environmentSku": "Sandbox", + "isDefault": false, + "capacity": [ + { + "capacityType": "Database", + "actualConsumption": 885.0391, + "ratedConsumption": 1024.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "File", + "actualConsumption": 1187.142, + "ratedConsumption": 1187.142, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "Log", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsDatabase", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsFile", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + } + ], + "addons": [], + "clientUris": { + "admin": "https://admin.powerplatform.microsoft.com/environments/environment/456/hub", + "maker": "https://make.powerapps.com/environments/456/home" + }, + "runtimeEndpoints": { + "microsoft.BusinessAppPlatform": "https://europe.api.bap.microsoft.com", + "microsoft.CommonDataModel": "https://europe.api.cds.microsoft.com", + "microsoft.PowerApps": "https://europe.api.powerapps.com", + "microsoft.PowerAppsAdvisor": "https://europe.api.advisor.powerapps.com", + "microsoft.PowerVirtualAgents": "https://powervamg.eu-il107.gateway.prod.island.powerapps.com", + "microsoft.ApiManagement": "https://management.EUROPE.azure-apihub.net", + "microsoft.Flow": "https://emea.api.flow.microsoft.com" + }, + "databaseType": "CommonDataService", + "linkedEnvironmentMetadata": { + "resourceId": "orgid", + "friendlyName": "displayname", + "uniqueName": "00000000-0000-0000-0000-000000000001", + "domainName": "00000000-0000-0000-0000-000000000001", + "version": "9.2.23092.00206", + "instanceUrl": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/", + "instanceApiUrl": "https://00000000-0000-0000-0000-000000000001.api.crm4.dynamics.com", + "baseLanguage": 1033, + "instanceState": "Ready", + "createdTime": "2023-09-27T07:08:28.957Z", + "backgroundOperationsState": "Enabled", + "scaleGroup": "EURCRMLIVESG705", + "platformSku": "Standard", + "schemaType": "Standard" + }, + "trialScenarioType": "None", + "notificationMetadata": { + "state": "NotSpecified", + "branding": "NotSpecific" + }, + "retentionPeriod": "P7D", + "states": { + "management": { + "id": "Ready" + }, + "runtime": { + "runtimeReasonCode": "NotSpecified", + "requestedBy": { + "displayName": "SYSTEM", + "type": "NotSpecified" + }, + "id": "Enabled" + } + }, + "updateCadence": { + "id": "Frequent" + }, + "retentionDetails": { + "retentionPeriod": "P7D", + "backupsAvailableFromDateTime": "2023-10-03T09:23:06.1717665Z" + }, + "protectionStatus": { + "keyManagedBy": "Microsoft" + }, + "cluster": { + "category": "Prod", + "number": "107", + "uriSuffix": "eu-il107.gateway.prod.island", + "geoShortName": "EU", + "environment": "Prod" + }, + "connectedGroups": [], + "lifecycleOperationsEnforcement": { + "allowedOperations": [ + { + "type": { + "id": "DisableGovernanceConfiguration" + }, + "reason": { + "message": "DisableGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + }, + { + "type": { + "id": "UpdateGovernanceConfiguration" + }, + "reason": { + "message": "UpdateGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + } + ] + }, + "governanceConfiguration": { + "protectionLevel": "Basic" + } + } +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_1.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_1.json new file mode 100644 index 00000000..bbbc191c --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_1.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000020.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264771\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000010", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264771, + "modifiedon": "2024-06-13T16:09:31Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_2.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_2.json new file mode 100644 index 00000000..f1958d4b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_2.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000020.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264771\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000011", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264771, + "modifiedon": "2024-06-13T16:09:31Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_3.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_3.json new file mode 100644 index 00000000..f1958d4b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_3.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000020.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264771\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000011", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264771, + "modifiedon": "2024-06-13T16:09:31Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_4.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_4.json new file mode 100644 index 00000000..f1958d4b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_4.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000020.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264771\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000011", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264771, + "modifiedon": "2024-06-13T16:09:31Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_5.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_5.json new file mode 100644 index 00000000..f1958d4b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_5.json @@ -0,0 +1,154 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000020.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", + "@odata.etag": "W/\"2264771\"", + "address1_latitude": 47.63, + "merged": false, + "territorycode": 1, + "exchangerate": 1.000000000000, + "accountcategorycode": 1, + "name": "Sample Account", + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "_primarycontactid_value": "00000000-0000-0000-0000-000000000011", + "donotpostalmail": false, + "accountratingcode": 1, + "marketingonly": false, + "revenue_base": 5000000.0000000000, + "preferredcontactmethodcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "accountclassificationcode": 1, + "description": "This is the description of the sample account", + "customersizecode": 1, + "businesstypecode": 1, + "donotemail": false, + "address2_shippingmethodcode": 1, + "address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:25Z", + "donotsendmm": false, + "donotfax": false, + "donotbulkpostalmail": false, + "versionnumber": 2264771, + "modifiedon": "2024-06-13T16:09:31Z", + "creditonhold": false, + "donotphone": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "accountid": "00000000-0000-0000-0000-000000000020", + "donotbulkemail": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "address2_addresstypecode": 1, + "revenue": 5000000.0000000000, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", + "telephone3": null, + "address1_shippingmethodcode": null, + "sharesoutstanding": null, + "ownershipcode": null, + "address1_freighttermscode": null, + "address1_upszone": null, + "websiteurl": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "preferredappointmentdaycode": null, + "customertypecode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address1_utcoffset": null, + "adx_createdbyipaddress": null, + "_masterid_value": null, + "lastonholdtime": null, + "address2_fax": null, + "accountnumber": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "emailaddress1": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "address2_line2": null, + "aging30_base": null, + "numberofemployees": null, + "address1_addresstypecode": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "entityimage_url": null, + "address1_composite": null, + "aging60": null, + "timezoneruleversionnumber": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "primarysatoriid": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "address1_country": null, + "address2_longitude": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "marketcap": null, + "_preferredsystemuserid_value": null, + "preferredappointmenttimecode": null, + "address1_fax": null, + "_createdonbehalfby_value": null, + "address2_name": null, + "creditlimit_base": null, + "marketcap_base": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "adx_modifiedbyusername": null, + "sic": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "address2_county": null, + "aging30": null, + "address1_line3": null, + "industrycode": null, + "address1_stateorprovince": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "entityimageid": null, + "_parentaccountid_value": null, + "yominame": null, + "lastusedincampaign": null, + "primarytwitterid": null, + "adx_createdbyusername": null, + "telephone2": null, + "stockexchange": null, + "aging90_base": null, + "tickersymbol": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "telephone1": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "aging60_base": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_1.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_1.json new file mode 100644 index 00000000..f3d38527 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_1.json @@ -0,0 +1,15 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000010" + }, + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000011" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_2.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_2.json new file mode 100644 index 00000000..1dbc62a5 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_2.json @@ -0,0 +1,15 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000011" + }, + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000012" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_3.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_3.json new file mode 100644 index 00000000..1dbc62a5 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_3.json @@ -0,0 +1,15 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000011" + }, + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000012" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_4.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_4.json new file mode 100644 index 00000000..1dbc62a5 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_4.json @@ -0,0 +1,15 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000011" + }, + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000012" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_5.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_5.json new file mode 100644 index 00000000..1dbc62a5 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts_5.json @@ -0,0 +1,15 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", + "value": [ + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000011" + }, + { + "@odata.etag": "W/\"2264386\"", + "createdon": "2024-06-12T14:13:17Z", + "contactid": "00000000-0000-0000-0000-000000000012" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_1.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_1.json new file mode 100644 index 00000000..7154133b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_1.json @@ -0,0 +1,11 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#Collection($ref)", + "value": [ + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)" + }, + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000011)" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_2.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_2.json new file mode 100644 index 00000000..05c5eef2 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_account_00000000-0000-0000-0000-000000000020_ref_2.json @@ -0,0 +1,11 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#Collection($ref)", + "value": [ + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000011)" + }, + { + "@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000012)" + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000010.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000010.json new file mode 100644 index 00000000..080a3b7d --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000010.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": null, + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": null, + "telephone1": null, + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "contact1", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": null, + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "contact1", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000011.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000011.json new file mode 100644 index 00000000..ad8c5dd7 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000011.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": null, + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": null, + "telephone1": null, + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "contact2", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": null, + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "contact2", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000012.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000012.json new file mode 100644 index 00000000..c66ffaf3 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_contact_00000000-0000-0000-0000-000000000012.json @@ -0,0 +1,229 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts/$entity", + "@odata.etag": "W/\"2264386\"", + "annualincome_base": 1234.5600000000, + "address2_addresstypecode": 1, + "birthdate": "2024-04-10", + "merged": false, + "territorycode": 1, + "emailaddress1": null, + "haschildrencode": 1, + "exchangerate": 1.000000000000, + "preferredappointmenttimecode": 1, + "isbackofficecustomer": false, + "_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", + "_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "adx_profilealert": false, + "lastname": null, + "telephone1": null, + "marketingonly": false, + "donotphone": false, + "preferredcontactmethodcode": 1, + "adx_identity_locallogindisabled": false, + "educationcode": 1, + "_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "description": "This is the description of the the terraform \n\nsample contact", + "adx_identity_logonenabled": false, + "customersizecode": 1, + "firstname": "contact3", + "anniversary": "2024-04-10", + "donotpostalmail": false, + "yomifullname": null, + "adx_identity_lockoutenabled": false, + "adx_profileisanonymous": false, + "donotemail": false, + "address2_shippingmethodcode": 1, + "fullname": "contact3", + "timezoneruleversionnumber": 0, + "address1_addressid": "154cc1ec-3b1c-49c5-833b-e946afedf8ef", + "address2_freighttermscode": 1, + "statuscode": 1, + "createdon": "2024-06-12T14:13:17Z", + "customertypecode": 1, + "donotsendmm": false, + "donotfax": false, + "leadsourcecode": 1, + "versionnumber": 2264386, + "adx_confirmremovepassword": false, + "modifiedon": "2024-06-12T14:13:28Z", + "creditonhold": false, + "adx_identity_emailaddress1confirmed": false, + "msdyn_isminor": false, + "_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", + "msdyn_isminorwithparentalconsent": false, + "address3_addressid": "e9b5aef1-faa4-4fb7-a800-5ae1abb61db1", + "donotbulkemail": false, + "adx_identity_twofactorenabled": false, + "_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "followemail": true, + "shippingmethodcode": 1, + "_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", + "donotbulkpostalmail": false, + "_parentcustomerid_value": "00000000-0000-0000-0000-000000000020", + "annualincome": 1234.5600000000, + "contactid": "00000000-0000-0000-0000-000000000010", + "msdyn_disablewebtracking": false, + "adx_identity_mobilephoneconfirmed": false, + "participatesinworkflow": false, + "statecode": 0, + "address2_addressid": "7ef29a4b-2c67-4026-b88f-b2dac0a85db6", + "telephone3": null, + "address1_shippingmethodcode": null, + "familystatuscode": null, + "adx_profilealertinstructions": null, + "nickname": null, + "address1_freighttermscode": null, + "address3_upszone": null, + "address1_upszone": null, + "websiteurl": null, + "adx_profilelastactivity": null, + "address2_city": null, + "_slainvokedid_value": null, + "address1_postofficebox": null, + "importsequencenumber": null, + "address3_longitude": null, + "preferredappointmentdaycode": null, + "utcconversiontimezonecode": null, + "overriddencreatedon": null, + "aging90": null, + "stageid": null, + "address3_primarycontactname": null, + "address1_latitude": null, + "address1_utcoffset": null, + "home2": null, + "adx_createdbyipaddress": null, + "yomifirstname": null, + "_masterid_value": null, + "address3_shippingmethodcode": null, + "lastonholdtime": null, + "address3_stateorprovince": null, + "address2_fax": null, + "address3_telephone3": null, + "address3_telephone2": null, + "address3_telephone1": null, + "msdyn_portaltermsagreementdate": null, + "governmentid": null, + "address2_line1": null, + "address1_telephone3": null, + "address1_telephone2": null, + "address1_telephone1": null, + "address2_postofficebox": null, + "ftpsiteurl": null, + "emailaddress2": null, + "address2_latitude": null, + "processid": null, + "emailaddress3": null, + "address2_composite": null, + "traversedpath": null, + "address1_city": null, + "spousesname": null, + "address3_name": null, + "address3_postofficebox": null, + "adx_identity_securitystamp": null, + "address2_line2": null, + "adx_publicprofilecopy": null, + "aging30_base": null, + "adx_identity_username": null, + "address1_addresstypecode": null, + "managerphone": null, + "address2_stateorprovince": null, + "address2_postalcode": null, + "_msa_managingpartnerid_value": null, + "adx_organizationname": null, + "entityimage_url": null, + "address1_composite": null, + "managername": null, + "aging60": null, + "address3_postalcode": null, + "adx_identity_accessfailedcount": null, + "jobtitle": null, + "adx_profilealertdate": null, + "address3_utcoffset": null, + "address2_telephone3": null, + "address2_telephone2": null, + "address2_telephone1": null, + "numberofchildren": null, + "address1_postalcode": null, + "address2_upszone": null, + "_owningteam_value": null, + "address2_line3": null, + "timespentbymeonemailandmeetings": null, + "department": null, + "address1_country": null, + "mspp_userpreferredlcid": null, + "adx_identity_newpassword": null, + "address2_longitude": null, + "suffix": null, + "_modifiedonbehalfby_value": null, + "creditlimit": null, + "address1_line2": null, + "paymenttermscode": null, + "address1_county": null, + "_preferredsystemuserid_value": null, + "accountrolecode": null, + "assistantname": null, + "address1_fax": null, + "adx_identity_passwordhash": null, + "_createdonbehalfby_value": null, + "_accountid_value": null, + "adx_identity_lockoutenddate": null, + "address2_name": null, + "creditlimit_base": null, + "business2": null, + "_modifiedbyexternalparty_value": null, + "address2_utcoffset": null, + "address3_composite": null, + "adx_modifiedbyusername": null, + "_slaid_value": null, + "fax": null, + "address1_line1": null, + "childrensnames": null, + "address2_county": null, + "address3_city": null, + "aging30": null, + "externaluseridentifier": null, + "adx_timezone": null, + "address1_line3": null, + "_parentcontactid_value": null, + "assistantphone": null, + "address1_stateorprovince": null, + "address3_addresstypecode": null, + "onholdtime": null, + "_createdbyexternalparty_value": null, + "entityimage_timestamp": null, + "mobilephone": null, + "address3_county": null, + "employeeid": null, + "subscriptionid": null, + "entityimageid": null, + "company": null, + "gendercode": null, + "callback": null, + "lastusedincampaign": null, + "address3_line3": null, + "adx_profilemodifiedon": null, + "adx_createdbyusername": null, + "telephone2": null, + "address3_freighttermscode": null, + "yomilastname": null, + "address3_fax": null, + "address3_line1": null, + "adx_preferredlcid": null, + "adx_identity_lastsuccessfullogin": null, + "address3_line2": null, + "yomimiddlename": null, + "aging90_base": null, + "address1_name": null, + "adx_modifiedbyipaddress": null, + "address1_primarycontactname": null, + "address1_longitude": null, + "address2_primarycontactname": null, + "entityimage": null, + "middlename": null, + "address3_latitude": null, + "salutation": null, + "aging60_base": null, + "pager": null, + "address3_country": null, + "address2_country": null +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json new file mode 100644 index 00000000..fb843e94 --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_account.json @@ -0,0 +1,4063 @@ +{ + "@odata.context": "https:///00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions(OneToManyRelationships(),ManyToManyRelationships(),ManyToOneRelationships())/$entity", + "MetadataId": "70816501-edb9-4740-a16c-6a5efbc05d84", + "HasChanged": null, + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": true, + "IsOneNoteIntegrationEnabled": true, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 0, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "account", + "ObjectTypeCode": 1, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "name", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "accountid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredAccount", + "SchemaName": "Account", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#794300", + "LogicalCollectionName": "accounts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Accounts", + "EntitySetName": "accounts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": false, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:41:52Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "Description": { + "LocalizedLabels": [ + { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Business that represents a customer or potential customer. The company that is billed in business transactions.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "294901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Account", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2a4901bf-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateAccount", + "PrivilegeId": "d26fe964-230b-42dd-ad93-5cc879de411e", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadAccount", + "PrivilegeId": "886b280c-6396-4d56-a0a3-2c1b0a50ceb0", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteAccount", + "PrivilegeId": "7863e80f-0ab2-4d67-a641-37d9f342c7e3", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteAccount", + "PrivilegeId": "ca6c7690-c935-46b3-bfd2-abb306c2acc0", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignAccount", + "PrivilegeId": "0791ab31-e811-4fde-974b-e7c5102b09eb", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareAccount", + "PrivilegeId": "39b15dfd-09ba-4f30-a390-cac64b635850", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendAccount", + "PrivilegeId": "4e163b38-ea45-49ae-b3da-4c9dc1c77d8d", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToAccount", + "PrivilegeId": "3d6e93a2-b58e-4a4a-b642-374e4a25a6bd", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [], + "OneToManyRelationships": [ + { + "MetadataId": "28be1745-2c06-11df-80a6-00137299e1c2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_principalobjectattributeaccess", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "principalobjectattributeaccess", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_principalobjectattributeaccess", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2842b45a-85ed-4a60-9778-3629434b2863", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Faxes", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "fax", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Faxes", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_fax", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc2f96ab-08a7-4e52-b520-7d6d1fe5b46b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "slakpiinstance_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regarding", + "ReferencingEntity": "slakpiinstance", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "slakpiinstance_account", + "ReferencingEntityNavigationPropertyName": "regarding_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fa5a8e67-621e-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_PostFollows", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postfollow", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostFollows", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "98210a30-6173-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRegardings", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postregarding", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRegardings", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bb546478-6174-11e0-834f-1cc1de634cfe", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_PostRoles", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "postrole", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_PostRoles", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "d4c7f132-a91c-4d16-952d-82eb7932504a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Tasks", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "task", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Tasks", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_task", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b319a54f-0364-4ed1-a2f0-dc0bae8c384d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections1", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record1id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections1", + "ReferencingEntityNavigationPropertyName": "record1id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "426a26f8-b668-4f48-bda2-a5808e76e59d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_customer", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_customer", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": null, + "ViewId": "693d27d3-dcd2-4260-9e58-961044b2d4d3", + "AvailableOffline": true, + "MenuId": "navRelationships", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fb3d985a-c10d-4893-ad43-9c20b51f0339", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "userentityinstancedata_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "userentityinstancedata", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "userentityinstancedata_account", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b77b8ae0-9f22-4b3c-af7a-6e2fdcdfa4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthorAccount_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthoraccount", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthorAccount_accounts", + "ReferencingEntityNavigationPropertyName": "postauthoraccount_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2b987b8f-0afb-46fd-a678-4d06ee26ca2f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateBaseRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "baserecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateBaseRecord", + "ReferencingEntityNavigationPropertyName": "baserecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c8b0f425-97d8-4f39-bde9-99b1a036b600", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "SocialActivity_PostAuthor_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "postauthor", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "SocialActivity_PostAuthor_accounts", + "ReferencingEntityNavigationPropertyName": "postauthor_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "337aa2d3-dc51-47d5-b3e9-0a00c1e4fc1a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SyncErrors", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "syncerror", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SyncErrors", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_syncerror", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ecde3961-1646-4292-a918-6cdd4f9debed", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_MailboxTrackingFolder", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "7.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "mailboxtrackingfolder", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_MailboxTrackingFolder", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "35667f12-83bd-40e3-87e8-8e60e4f2d2b1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_BulkDeleteFailures", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "bulkdeletefailure", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_BulkDeleteFailures", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9cdbdcea-b5ee-4a8d-b875-050d455757bd", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ActivityPointers", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "activitypointer", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ActivityPointers", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 20, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": "navActivities", + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "ad634653-9d42-450a-8b16-0c035113b4c3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_SendersAccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "sendersaccount", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_SendersAccount", + "ReferencingEntityNavigationPropertyName": "sendersaccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e9577bc8-d86e-4e90-ad7d-bce8bbd80c18", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Appointments", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "appointment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Appointments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_appointment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "bc9ebc45-2470-441a-b333-d3083f9fb9e4", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Socialprofile_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "customerid", + "ReferencingEntity": "socialprofile", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Socialprofile_customer_accounts", + "ReferencingEntityNavigationPropertyName": "customerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "ff0f8b49-e2cd-45f1-b878-cbd99aa4ac56", + "AvailableOffline": true, + "MenuId": "navSocialprofiles", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fc41359e-b78a-457e-a064-cde4e4b4bf7f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Emails", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Emails", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_email", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "f50ae162-4efb-4d64-8184-d8d4921d007d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_activity_parties", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partyid", + "ReferencingEntity": "activityparty", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_activity_parties", + "ReferencingEntityNavigationPropertyName": "partyid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9b4f4019-bdc2-4dd7-9b18-58c2d087a27d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Phonecalls", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "phonecall", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Phonecalls", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_phonecall", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "fd4dfeb5-0193-4396-860b-fab38be13f5c", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_customer_relationship_partner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "partnerid", + "ReferencingEntity": "customerrelationship", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_customer_relationship_partner", + "ReferencingEntityNavigationPropertyName": "partnerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "801678d1-2853-4a06-9607-66d7462fe4a7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SocialActivities", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "socialactivity", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SocialActivities", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_socialactivity", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6531e88d-0e0e-4d62-a06f-d3d43576ef2b", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "Account_DuplicateMatchingRecord", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "duplicaterecordid", + "ReferencingEntity": "duplicaterecord", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_DuplicateMatchingRecord", + "ReferencingEntityNavigationPropertyName": "duplicaterecordid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1ab88cd1-9c71-471b-955f-704697c80f3d", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocument", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocument", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocument", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 60, + "IsCustomizable": true, + "Icon": "/_imgs/ico_18_9508.png", + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": "navSPDocuments", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9612e850-10b4-437a-a53e-e8aff65e0bd7", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_actioncard", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.2.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "actioncard", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_actioncard", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_actioncard", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8fe20c46-f533-4ac9-a5ef-49e2010c2235", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_AsyncOperations", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "asyncoperation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_AsyncOperations", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "cf75831c-9aa7-49cd-814d-7a03e1e40576", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_CustomerAddress", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentid", + "ReferencingEntity": "customeraddress", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_CustomerAddress", + "ReferencingEntityNavigationPropertyName": "parentid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10, + "IsCustomizable": true, + "Icon": null, + "ViewId": "03315b35-4585-4447-a4d2-059cf79ca0fd", + "AvailableOffline": true, + "MenuId": "navAddresses", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57512d8c-b06d-477e-b28a-0e7fa4d77cf8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Annotation", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "objectid", + "ReferencingEntity": "annotation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Annotation", + "ReferencingEntityNavigationPropertyName": "objectid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "697d2a87-4698-42b9-8f29-f703a991d24a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Letters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "letter", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Letters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_letter", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "e2664de7-2cd4-47bc-8623-57badf64a65f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_RecurringAppointmentMasters", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "recurringappointmentmaster", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_RecurringAppointmentMasters", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_recurringappointmentmaster", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a5508e2d-4089-4a54-bf6e-0c093fc76c88", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_Email_EmailSender", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.1.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "emailsender", + "ReferencingEntity": "email", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_Email_EmailSender", + "ReferencingEntityNavigationPropertyName": "emailsender_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "11b2ab2e-8958-4401-a0bd-2073814f2741", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_ProcessSessions", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "processsession", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_ProcessSessions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 110, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "dc9b80f8-c781-46d8-9fd6-a3b610836975", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "contact_customer_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentcustomerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "contact_customer_accounts", + "ReferencingEntityNavigationPropertyName": "parentcustomerid_account", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 50, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001210", + "AvailableOffline": true, + "MenuId": "navContacts", + "QueryApi": "CRMAccount.RetrieveSubContacts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "da581321-ae9a-4503-9288-0ea32acad00e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "Account_SharepointDocumentLocation", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "sharepointdocumentlocation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "Account_SharepointDocumentLocation", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "c32a95ba-4540-4ed4-95a6-121a085d241f", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_connections2", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "record2id", + "ReferencingEntity": "connection", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_connections2", + "ReferencingEntityNavigationPropertyName": "record2id_account", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1800bd86-ad1f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_chats", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "chat", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_chats", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_chat", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "afa6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_contact_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "contact", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_contact_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100500, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "e9819397-2c88-4e27-b680-b89d09c08442", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "97e7dba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_inviteredemptions", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_inviteredemption", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_inviteredemptions", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_inviteredemption", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6eeadba9-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_adx_portalcomments", + "SecurityTypes": "Append", + "IsManaged": false, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.2402.1", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "regardingobjectid", + "ReferencingEntity": "adx_portalcomment", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_adx_portalcomments", + "ReferencingEntityNavigationPropertyName": "regardingobjectid_account_adx_portalcomment", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001903", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": "CRMActivity.RollupRelatedByParty", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "Cascade", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6e51dbaf-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "adx_invitation_assigntoaccount", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "adx_assigntoaccount", + "ReferencingEntity": "adx_invitation", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "adx_invitation_assigntoaccount", + "ReferencingEntityNavigationPropertyName": "adx_assignToAccount", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "d71f5096-dc5e-470a-9a37-80053a7d03d0", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ], + "ManyToManyRelationships": [ + { + "MetadataId": "c11012be-c11f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "powerpagecomponent_mspp_webrole_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "ManyToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "Entity1LogicalName": "powerpagecomponent", + "Entity2LogicalName": "account", + "IntersectEntityName": "powerpagecomponent_mspp_webrole_account", + "Entity1IntersectAttribute": "powerpagecomponentid", + "Entity2IntersectAttribute": "accountid", + "Entity1NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "Entity2NavigationPropertyName": "powerpagecomponent_mspp_webrole_account", + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "Entity1AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": 100600, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "1c2f86da-ed2d-4dff-b07e-e6448489abe7", + "HasChanged": null + } + } + }, + "Entity2AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 100100, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "0f118b3c-a351-48f4-8bbf-4a6877abe823", + "HasChanged": null + } + } + } + } + ], + "ManyToOneRelationships": [ + { + "MetadataId": "410707b1-9554-4cd9-8437-6608b1802904", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_primary_contact", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "contactid", + "ReferencedEntity": "contact", + "ReferencingAttribute": "primarycontactid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_primary_contact", + "ReferencingEntityNavigationPropertyName": "primarycontactid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "51fa4af7-93d0-4f06-8949-38a0036ddc64", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "account_master_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "masterid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_master_account", + "ReferencingEntityNavigationPropertyName": "masterid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a6b48e23-fada-4b7f-8655-530bba050765", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "system_user_accounts", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "preferredsystemuserid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "system_user_accounts", + "ReferencingEntityNavigationPropertyName": "preferredsystemuserid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "9967fe7d-84ee-4a26-9ad7-a8fdbdfa2316", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "createdbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_createdby", + "ReferencingEntityNavigationPropertyName": "CreatedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "8be02a9d-0776-4c76-b35f-1c92dd791d9e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedby", + "ReferencingEntityNavigationPropertyName": "modifiedby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "57511732-b553-4cfb-bcf2-d280f9f8c6f1", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "account_parent_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "parentaccountid", + "ReferencingEntity": "account", + "IsHierarchical": true, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "account_parent_account", + "ReferencingEntityNavigationPropertyName": "parentaccountid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 40, + "IsCustomizable": true, + "Icon": "/_imgs/area/18_subAccounts.gif", + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navSubAccts", + "QueryApi": "CRMAccount.RetrieveSubAccounts", + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "Cascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "Cascade", + "Share": "Cascade", + "Unshare": "Cascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5b4942d5-1fcd-49ca-91c0-2737f5f104f3", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "lk_account_entityimage", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "imagedescriptorid", + "ReferencedEntity": "imagedescriptor", + "ReferencingAttribute": "entityimageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_account_entityimage", + "ReferencingEntityNavigationPropertyName": "entityimageid_imagedescriptor", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "6ad8133d-2f1e-4c43-a3da-460bacb3d6a5", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "business_unit_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "businessunitid", + "ReferencedEntity": "businessunit", + "ReferencingAttribute": "owningbusinessunit", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "business_unit_accounts", + "ReferencingEntityNavigationPropertyName": "owningbusinessunit", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "1742bd26-9b6b-4100-becf-4a5ea2f0d819", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "transactioncurrency_account", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "transactioncurrencyid", + "ReferencedEntity": "transactioncurrency", + "ReferencingAttribute": "transactioncurrencyid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "transactioncurrency_account", + "ReferencingEntityNavigationPropertyName": "transactioncurrencyid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "Restrict", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "5e98d042-00bb-494a-b231-eadc8d4a94ec", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "user_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "owninguser", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "user_accounts", + "ReferencingEntityNavigationPropertyName": "owninguser", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b6620960-51ad-4586-b284-5777f4b77ce2", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdonbehalfby", + "ReferencingEntityNavigationPropertyName": "createdonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "b74b7062-1d03-436e-b4de-f90ed78d5412", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "processstage_account", + "SecurityTypes": "ParentChild", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "6.0.0.0", + "ReferencedAttribute": "processstageid", + "ReferencedEntity": "processstage", + "ReferencingAttribute": "stageid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "processstage_account", + "ReferencingEntityNavigationPropertyName": "stageid_processstage", + "RelationshipBehavior": 2, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "0d17829c-5065-48b8-b94b-11105febcd15", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "manualsla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slaid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "manualsla_account", + "ReferencingEntityNavigationPropertyName": "sla_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseCollectionName", + "Group": "Details", + "Order": 10000, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-00aa-000010001200", + "AvailableOffline": true, + "MenuId": "navAccounts", + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "54ec5650-4a4f-4da1-b782-0a4a8e1e3e84", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_createdby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "createdby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_createdby", + "ReferencingEntityNavigationPropertyName": "createdby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "4f4276b7-3d18-4fb1-99b8-05c833c81a3e", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_externalparty_account_modifiedby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.0.0.0", + "ReferencedAttribute": "externalpartyid", + "ReferencedEntity": "externalparty", + "ReferencingAttribute": "modifiedbyexternalparty", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_externalparty_account_modifiedby", + "ReferencingEntityNavigationPropertyName": "ModifiedByExternalParty", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "12140b38-c019-42ad-8349-8b939b839939", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "sla_account", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "8.1.0.0", + "ReferencedAttribute": "slaid", + "ReferencedEntity": "sla", + "ReferencingAttribute": "slainvokedid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "sla_account", + "ReferencingEntityNavigationPropertyName": "slainvokedid_account_sla", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "2074fc1d-84a2-48ac-a47c-fcf1d249a052", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "lk_accountbase_modifiedonbehalfby", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "systemuserid", + "ReferencedEntity": "systemuser", + "ReferencingAttribute": "modifiedonbehalfby", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "lk_accountbase_modifiedonbehalfby", + "ReferencingEntityNavigationPropertyName": "modifiedonbehalfby", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "55aca456-12e1-45d8-989e-dce78f9a31b8", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": true, + "SchemaName": "team_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "teamid", + "ReferencedEntity": "team", + "ReferencingAttribute": "owningteam", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "team_accounts", + "ReferencingEntityNavigationPropertyName": "owningteam", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "976f5d41-2909-4224-90fb-02490d9b65f0", + "HasChanged": null, + "IsCustomRelationship": false, + "IsValidForAdvancedFind": false, + "SchemaName": "owner_accounts", + "SecurityTypes": "None", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "5.0.0.0", + "ReferencedAttribute": "ownerid", + "ReferencedEntity": "owner", + "ReferencingAttribute": "ownerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "owner_accounts", + "ReferencingEntityNavigationPropertyName": "ownerid", + "RelationshipBehavior": 0, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": false, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "DoNotDisplay", + "Group": "Details", + "Order": null, + "IsCustomizable": false, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [], + "UserLocalizedLabel": null + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "NoCascade", + "Archive": "NoCascade", + "Merge": "NoCascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + }, + { + "MetadataId": "a1a6c67e-c01f-ef11-840b-000d3abf969a", + "HasChanged": null, + "IsCustomRelationship": true, + "IsValidForAdvancedFind": true, + "SchemaName": "msa_account_managingpartner", + "SecurityTypes": "Append", + "IsManaged": true, + "RelationshipType": "OneToManyRelationship", + "IntroducedVersion": "1.0.0.0", + "ReferencedAttribute": "accountid", + "ReferencedEntity": "account", + "ReferencingAttribute": "msa_managingpartnerid", + "ReferencingEntity": "account", + "IsHierarchical": false, + "EntityKey": null, + "IsRelationshipAttributeDenormalized": false, + "ReferencedEntityNavigationPropertyName": "msa_account_managingpartner", + "ReferencingEntityNavigationPropertyName": "msa_managingpartnerid", + "RelationshipBehavior": 1, + "IsDenormalizedLookup": null, + "DenormalizedAttributeName": null, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "AssociatedMenuConfiguration": { + "Behavior": "UseLabel", + "Group": "Details", + "Order": 100400, + "IsCustomizable": true, + "Icon": null, + "ViewId": "00000000-0000-0000-0000-000000000000", + "AvailableOffline": true, + "MenuId": null, + "QueryApi": null, + "Label": { + "LocalizedLabels": [ + { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Managed Accounts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "2b8260a8-8569-4be2-b380-e461c6054451", + "HasChanged": null + } + } + }, + "CascadeConfiguration": { + "Assign": "NoCascade", + "Delete": "RemoveLink", + "Archive": "NoCascade", + "Merge": "Cascade", + "Reparent": "NoCascade", + "Share": "NoCascade", + "Unshare": "NoCascade", + "RollupView": "NoCascade" + }, + "RelationshipAttributes": [] + } + ] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_contact.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_contact.json new file mode 100644 index 00000000..b5aff47d --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_entitydefinition_contact.json @@ -0,0 +1,356 @@ +{ + "@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#EntityDefinitions/$entity", + "ActivityTypeMask": 0, + "AutoRouteToOwnerQueue": false, + "CanTriggerWorkflow": true, + "EntityHelpUrlEnabled": false, + "EntityHelpUrl": null, + "IsDocumentManagementEnabled": false, + "IsOneNoteIntegrationEnabled": false, + "IsInteractionCentricEnabled": true, + "IsKnowledgeManagementEnabled": false, + "IsSLAEnabled": false, + "IsBPFEntity": false, + "IsDocumentRecommendationsEnabled": false, + "IsMSTeamsIntegrationEnabled": false, + "SettingOf": null, + "DataProviderId": null, + "DataSourceId": null, + "AutoCreateAccessTeams": false, + "IsActivity": false, + "IsActivityParty": true, + "IsRetrieveAuditEnabled": false, + "IsRetrieveMultipleAuditEnabled": false, + "IsArchivalEnabled": false, + "IsRetentionEnabled": false, + "IsAvailableOffline": true, + "IsChildEntity": false, + "IsAIRUpdated": true, + "IconLargeName": null, + "IconMediumName": null, + "IconSmallName": null, + "IconVectorName": null, + "IsCustomEntity": false, + "IsBusinessProcessEnabled": true, + "SyncToExternalSearchIndex": true, + "IsOptimisticConcurrencyEnabled": true, + "ChangeTrackingEnabled": true, + "IsImportable": true, + "IsIntersect": false, + "IsManaged": true, + "IsEnabledForCharts": true, + "IsEnabledForTrace": false, + "IsValidForAdvancedFind": true, + "DaysSinceRecordLastModified": 10, + "MobileOfflineFilters": "\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t", + "IsReadingPaneEnabled": true, + "IsQuickCreateEnabled": true, + "LogicalName": "contact", + "ObjectTypeCode": 2, + "OwnershipType": "UserOwned", + "PrimaryNameAttribute": "fullname", + "PrimaryImageAttribute": "entityimage", + "PrimaryIdAttribute": "contactid", + "RecurrenceBaseEntityLogicalName": null, + "ReportViewName": "FilteredContact", + "SchemaName": "Contact", + "IntroducedVersion": "5.0.0.0", + "IsStateModelAware": true, + "EnforceStateTransitions": false, + "ExternalName": null, + "EntityColor": "#005088", + "LogicalCollectionName": "contacts", + "ExternalCollectionName": null, + "CollectionSchemaName": "Contacts", + "EntitySetName": "contacts", + "IsEnabledForExternalChannels": true, + "IsPrivate": false, + "UsesBusinessDataLabelTable": false, + "IsLogicalEntity": false, + "HasNotes": true, + "HasActivities": true, + "HasFeedback": true, + "IsSolutionAware": false, + "CreatedOn": "1900-01-01T00:00:00Z", + "ModifiedOn": "2024-06-01T02:50:48Z", + "HasEmailAddresses": true, + "OwnerId": null, + "OwnerIdType": 8, + "OwningBusinessUnit": null, + "TableType": "Standard", + "MetadataId": "608861bc-50a4-4c5f-a02c-21fe1943e2cf", + "HasChanged": null, + "Description": { + "LocalizedLabels": [ + { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Person with whom a business unit has a relationship, such as customer, supplier, and colleague.", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "b99709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayCollectionName": { + "LocalizedLabels": [ + { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contacts", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "bb9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "DisplayName": { + "LocalizedLabels": [ + { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + ], + "UserLocalizedLabel": { + "Label": "Contact", + "LanguageCode": 1033, + "IsManaged": true, + "MetadataId": "ba9709b3-2241-db11-898a-0007e9e17ebd", + "HasChanged": null + } + }, + "IsAuditEnabled": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyauditsettings" + }, + "IsValidForQueue": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyqueuesettings" + }, + "IsConnectionsEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyconnectionsettings" + }, + "IsCustomizable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "iscustomizable" + }, + "IsRenameable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "isrenameable" + }, + "IsMappable": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "ismappable" + }, + "IsDuplicateDetectionEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyduplicatedetectionsettings" + }, + "CanCreateAttributes": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateattributes" + }, + "CanCreateForms": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateforms" + }, + "CanCreateViews": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreateviews" + }, + "CanCreateCharts": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "cancreatecharts" + }, + "CanBeRelatedEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canberelatedentityinrelationship" + }, + "CanBePrimaryEntityInRelationship": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeprimaryentityinrelationship" + }, + "CanBeInManyToMany": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeinmanytomany" + }, + "CanBeInCustomEntityAssociation": { + "Value": true, + "CanBeChanged": false, + "ManagedPropertyLogicalName": "canbeincustomentityassociation" + }, + "CanEnableSyncToExternalSearchIndex": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canenablesynctoexternalsearchindex" + }, + "CanModifyAdditionalSettings": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifyadditionalsettings" + }, + "CanChangeHierarchicalRelationship": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangehierarchicalrelationship" + }, + "CanChangeTrackingBeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canchangetrackingbeenabled" + }, + "IsMailMergeEnabled": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymailmergesettings" + }, + "IsVisibleInMobile": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobilevisibility" + }, + "IsVisibleInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientvisibility" + }, + "IsReadOnlyInMobileClient": { + "Value": false, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientreadonly" + }, + "IsOfflineInMobileClient": { + "Value": true, + "CanBeChanged": true, + "ManagedPropertyLogicalName": "canmodifymobileclientoffline" + }, + "Privileges": [ + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvCreateContact", + "PrivilegeId": "a8bff87f-0df0-41d4-babd-f093faf1e32c", + "PrivilegeType": "Create" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvReadContact", + "PrivilegeId": "ba09ec92-12c4-4312-ba16-5715c2cbd6da", + "PrivilegeType": "Read" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvWriteContact", + "PrivilegeId": "65c22075-4e09-4f39-baec-e4bc3a950686", + "PrivilegeType": "Write" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvDeleteContact", + "PrivilegeId": "2ddded47-7488-4039-b9ff-81defe81fdd3", + "PrivilegeType": "Delete" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAssignContact", + "PrivilegeId": "43c63782-c7c6-471c-bd9c-24f79bf8c2a1", + "PrivilegeType": "Assign" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvShareContact", + "PrivilegeId": "ae756940-61ff-4bd3-bfbb-f2b0d542c608", + "PrivilegeType": "Share" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendContact", + "PrivilegeId": "2b16ba12-6ab4-4ad2-b7c0-8641d2d6dff2", + "PrivilegeType": "Append" + }, + { + "CanBeBasic": true, + "CanBeDeep": true, + "CanBeGlobal": true, + "CanBeLocal": true, + "CanBeEntityReference": false, + "CanBeParentEntityReference": false, + "CanBeRecordFilter": false, + "Name": "prvAppendToContact", + "PrivilegeId": "158327b5-f4c1-448e-93d1-5f135126665b", + "PrivilegeType": "AppendTo" + } + ], + "Settings": [] +} diff --git a/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_environment_00000000-0000-0000-0000-000000000001.json b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_environment_00000000-0000-0000-0000-000000000001.json new file mode 100644 index 00000000..cf52a46b --- /dev/null +++ b/internal/powerplatform/services/data_record/tests/resource/Validate_Update_Relationships/get_environment_00000000-0000-0000-0000-000000000001.json @@ -0,0 +1,199 @@ +{ + "id": "/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments/00000000-0000-0000-0000-000000000001", + "type": "Microsoft.BusinessAppPlatform/scopes/environments", + "location": "europe", + "name": "00000000-0000-0000-0000-000000000001", + "properties": { + "tenantId": "123", + "azureRegion": "westeurope", + "displayName": "displayname", + "createdTime": "2023-09-27T07:08:27.6057592Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "displayName": "admin", + "email": "admin", + "type": "User", + "tenantId": "123", + "userPrincipalName": "admin" + }, + "billingPolicy": { + "id": "00000000-0000-0000-0000-000000000001", + "name": "name", + "type": "TenantOwned", + "status": "Enabled", + "location": "switzerland", + "powerAutomatePolicy": { + "cloudFlowRunsPayAsYouGoState": "Enabled", + "desktopFlowUnattendedRunsPayAsYouGoState": "Enabled", + "desktopFlowAttendedRunsPayAsYouGoState": "Enabled" + }, + "powerAppsPolicy": { + "payAsYouGoState": "Enabled" + }, + "storagePolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPlatformRequestsPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerPagesPolicy": { + "payAsYouGoState": "Enabled" + }, + "powerVirtualAgentPolicy": { + "payAsYouGoState": "Enabled" + }, + "billingInstrument": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroup": "rg-terraform", + "location": "switzerland", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-terraform/providers/Microsoft.PowerPlatform/accounts/name", + "provisioningStatus": "Succeeded" + }, + "createdOn": "2023-12-07T13:08:24Z", + "createdBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + }, + "lastModifiedOn": "2023-12-07T13:08:24Z", + "lastModifiedBy": { + "id": "f99f844b-ce3b-49ae-86f3-e374ecae789c", + "type": "User" + } + }, + "lastModifiedTime": "2023-09-27T07:08:34.9205145Z", + "provisioningState": "Succeeded", + "creationType": "User", + "environmentSku": "Sandbox", + "isDefault": false, + "capacity": [ + { + "capacityType": "Database", + "actualConsumption": 885.0391, + "ratedConsumption": 1024.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "File", + "actualConsumption": 1187.142, + "ratedConsumption": 1187.142, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "Log", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsDatabase", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + }, + { + "capacityType": "FinOpsFile", + "actualConsumption": 0.0, + "ratedConsumption": 0.0, + "capacityUnit": "MB", + "updatedOn": "2023-10-10T03:00:35Z" + } + ], + "addons": [], + "clientUris": { + "admin": "https://admin.powerplatform.microsoft.com/environments/environment/456/hub", + "maker": "https://make.powerapps.com/environments/456/home" + }, + "runtimeEndpoints": { + "microsoft.BusinessAppPlatform": "https://europe.api.bap.microsoft.com", + "microsoft.CommonDataModel": "https://europe.api.cds.microsoft.com", + "microsoft.PowerApps": "https://europe.api.powerapps.com", + "microsoft.PowerAppsAdvisor": "https://europe.api.advisor.powerapps.com", + "microsoft.PowerVirtualAgents": "https://powervamg.eu-il107.gateway.prod.island.powerapps.com", + "microsoft.ApiManagement": "https://management.EUROPE.azure-apihub.net", + "microsoft.Flow": "https://emea.api.flow.microsoft.com" + }, + "databaseType": "CommonDataService", + "linkedEnvironmentMetadata": { + "resourceId": "orgid", + "friendlyName": "displayname", + "uniqueName": "00000000-0000-0000-0000-000000000001", + "domainName": "00000000-0000-0000-0000-000000000001", + "version": "9.2.23092.00206", + "instanceUrl": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/", + "instanceApiUrl": "https://00000000-0000-0000-0000-000000000001.api.crm4.dynamics.com", + "baseLanguage": 1033, + "instanceState": "Ready", + "createdTime": "2023-09-27T07:08:28.957Z", + "backgroundOperationsState": "Enabled", + "scaleGroup": "EURCRMLIVESG705", + "platformSku": "Standard", + "schemaType": "Standard" + }, + "trialScenarioType": "None", + "notificationMetadata": { + "state": "NotSpecified", + "branding": "NotSpecific" + }, + "retentionPeriod": "P7D", + "states": { + "management": { + "id": "Ready" + }, + "runtime": { + "runtimeReasonCode": "NotSpecified", + "requestedBy": { + "displayName": "SYSTEM", + "type": "NotSpecified" + }, + "id": "Enabled" + } + }, + "updateCadence": { + "id": "Frequent" + }, + "retentionDetails": { + "retentionPeriod": "P7D", + "backupsAvailableFromDateTime": "2023-10-03T09:23:06.1717665Z" + }, + "protectionStatus": { + "keyManagedBy": "Microsoft" + }, + "cluster": { + "category": "Prod", + "number": "107", + "uriSuffix": "eu-il107.gateway.prod.island", + "geoShortName": "EU", + "environment": "Prod" + }, + "connectedGroups": [], + "lifecycleOperationsEnforcement": { + "allowedOperations": [ + { + "type": { + "id": "DisableGovernanceConfiguration" + }, + "reason": { + "message": "DisableGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + }, + { + "type": { + "id": "UpdateGovernanceConfiguration" + }, + "reason": { + "message": "UpdateGovernanceConfiguration cannot be performed on Power Platform environment because of the governance configuration.", + "type": "GovernanceConfig" + } + } + ] + }, + "governanceConfiguration": { + "protectionLevel": "Basic" + } + } +}