diff --git a/package.json b/package.json index 2e2a12b..87cc582 100644 --- a/package.json +++ b/package.json @@ -344,6 +344,11 @@ "command": "dvdt.commands.createTSFile", "title": "Add Dataverse TS File", "category": "%dvdt.commands.category%" + }, + { + "command": "dvdt.commands.openDRB", + "title": "Open Dataverse REST Builder", + "category": "%dvdt.commands.category%" } ], "keybindings": [ diff --git a/resources/views/drb.html b/resources/views/drb.html new file mode 100644 index 0000000..16699ad --- /dev/null +++ b/resources/views/drb.html @@ -0,0 +1,9 @@ +
+ + + + + diff --git a/resources/views/js/base.js b/resources/views/js/base.js index 47aee21..0491f50 100644 --- a/resources/views/js/base.js +++ b/resources/views/js/base.js @@ -1,6 +1,6 @@ const vscode = acquireVsCodeApi(); -var $table = $("#matchTable"); +var $matchTable = $("#matchTable"); $(document).ready(function () { $("#attrSearch").on("keyup", function () { @@ -9,10 +9,12 @@ $(document).ready(function () { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); }); }); - $table.bootstrapTable(); - $table.bootstrapTable("refreshOptions", { - classes: "table table-bordered", - }); + if ($matchTable && $matchTable.bootstrapTable) { + $matchTable.bootstrapTable(); + $matchTable.bootstrapTable("refreshOptions", { + classes: "table table-bordered", + }); + } }); document.addEventListener("DOMContentLoaded", function () { diff --git a/resources/views/js/drb_custom.js b/resources/views/js/drb_custom.js new file mode 100644 index 0000000..b2e58eb --- /dev/null +++ b/resources/views/js/drb_custom.js @@ -0,0 +1,19330 @@ +/* eslint-disable @typescript-eslint/naming-convention */ +// #region DRB.Namespaces +var DRB = {}; // Application Namespace +DRB.DOM = {}; // DOM +DRB.Common = {}; // Common Functions +DRB.Metadata = {}; // Store temporarily the retrieved Metadata +DRB.Models = {}; // Models used by the Application +DRB.Settings = {}; // Settings used by the Application +DRB.UI = {}; // Functions to manage UI elements +DRB.Utilities = {}; // Utilities Functions +DRB.Xrm = {}; // Xrm Functions +DRB.Collection = {}; // Collection Functions +DRB.CustomUI = {}; // Custom UI Functions +DRB.GenerateCode = {}; // Generate Code Functions +DRB.GeneratePostman = {}; // Generate Postman Functions + +DRB.Logic = {}; // Functions defined for each operation +DRB.Logic.RetrieveSingle = {}; // Retrieve Single Functions +DRB.Logic.RetrieveMultiple = {}; // Retrieve Multiple Functions +DRB.Logic.Create = {}; // Create Functions +DRB.Logic.Update = {}; // Update Functions +DRB.Logic.Delete = {}; // Delete Functions +DRB.Logic.Association = {}; // Associate, Disassociate Functions +DRB.Logic.RetrieveNextLink = {}; // Retrieve NextLink Functions +DRB.Logic.PredefinedQuery = {}; // Predefined Query Functions +DRB.Logic.DataverseExecute = {}; // Dataverse Action, Dataverse Function Functions +DRB.Logic.ExecuteWorkflow = {}; // Execute Workflow Functions +DRB.Logic.ManageFileImageData = {}; // Manage File Image Data Functions +// #endregion + +// #region DRB.DOM +// Main Content +DRB.DOM.MainBody = { Id: "main_body" }; // defined also inside index.htm +DRB.DOM.MainContent = { Id: "main_content" }; +DRB.DOM.VersionSpan = { Id: "span_drbversion" }; +DRB.DOM.ContextSpan = { Id: "span_context" }; + +// Notice +DRB.DOM.Notice = {}; +DRB.DOM.Notice.Div = { Id: "div_notice" }; +DRB.DOM.Notice.Button = { Id: "btn_notice" }; + +// Split +DRB.DOM.Split = {}; +DRB.DOM.Split.Menu = { Id: "div_menu" }; +DRB.DOM.Split.Content = { Id: "div_content" }; + +// jsTree +DRB.DOM.TreeView = { Id: "div_collection" }; + +// Configure Content +DRB.DOM.ConfigureContent = { Id: "configure_settings" }; + +// Tabs +DRB.DOM.TabsRequest = { Id: "tabs_request" }; +DRB.DOM.TabsContent = { Id: "tabs_content" }; +DRB.DOM.TabsWarning = { Id: "tabs_warning_" }; + +// Collection +DRB.DOM.Collection = {}; +DRB.DOM.Collection.Menu = { Id: "mnu_file" }; +DRB.DOM.Collection.Separator = { Id: "", Class: "dropdown-divider" }; +DRB.DOM.Collection.LoadInput = { Id: "inp_loadfile" }; +DRB.DOM.Collection.NewButton = { Id: "btn_newcollection", Name: "New Collection", Class: "dropdown-item" }; +DRB.DOM.Collection.LoadButton = { Id: "btn_loadcollection", Name: "Load Collection", Class: "dropdown-item" }; +DRB.DOM.Collection.SaveButton = { Id: "btn_savecollection", Name: "Save Collection", Class: "dropdown-item" }; +DRB.DOM.Collection.ExportPostmanButton = { Id: "btn_exportpostmancollection", Name: "Export as Postman Collection (2.1)", Class: "dropdown-item" }; + +DRB.DOM.Collection.Postman = {}; +DRB.DOM.Collection.Postman.Div = { Id: "div_export_postman" }; +DRB.DOM.Collection.Postman.GrantTypeSpan = { Id: "span_postman_granttype", Name: "Grant Type" }; +DRB.DOM.Collection.Postman.GrantTypeDropdown = { Id: "cbx_postman_granttype", Name: "Select Grant Type" }; +DRB.DOM.Collection.Postman.SettingsDiv = { Id: "div_export_postman_setting" }; + +DRB.DOM.Collection.Postman.Table = { Id: "table_postman" }; +DRB.DOM.Collection.Postman.Tr = { Id: "tr_postman_" }; +DRB.DOM.Collection.Postman.TdLabel = { Id: "td_postman_label_" }; +DRB.DOM.Collection.Postman.TdValue = { Id: "td_postman_value_" }; + +DRB.DOM.Collection.Postman.EndpointSpan = { Id: "span_postman_endpoint", Name: "Endpoint" }; +DRB.DOM.Collection.Postman.EndpointDropdown = { Id: "cbx_postman_endpoint", Name: "Select Endpoint" }; + +DRB.DOM.Collection.Postman.UrlSpan = { Id: "span_postman_url", Name: "URL", SmallText: "{{url}}" }; +DRB.DOM.Collection.Postman.UrlInput = { Id: "txt_postman_url" }; + +DRB.DOM.Collection.Postman.AuthUrlSpan = { Id: "span_postman_authurl", Name: "Auth URL", SmallText: "{{authurl}}" }; +DRB.DOM.Collection.Postman.AuthUrlInput = { Id: "txt_postman_authurl" }; +DRB.DOM.Collection.Postman.CallbackUrlSpan = { Id: "span_postman_callbackurl", Name: "Callback URL", SmallText: "{{callback}}" }; +DRB.DOM.Collection.Postman.CallbackUrlInput = { Id: "txt_postman_callbackurl" }; + +DRB.DOM.Collection.Postman.ClientIdSpan = { Id: "span_postman_clientid", Name: "Client ID", SmallText: "{{clientid}}" }; +DRB.DOM.Collection.Postman.ClientIdInput = { Id: "txt_postman_clientid" }; +DRB.DOM.Collection.Postman.ClientSecretSpan = { Id: "span_postman_clientsecret", Name: "Client Secret", SmallText: "{{clientsecret}}" }; +DRB.DOM.Collection.Postman.ClientSecretInput = { Id: "txt_postman_clientsecret" }; +DRB.DOM.Collection.Postman.TenantIdSpan = { Id: "span_postman_tenantid", Name: "Tenant ID", SmallText: "{{tenantid}}" }; +DRB.DOM.Collection.Postman.TenantIdInput = { Id: "txt_postman_tenantid" }; +DRB.DOM.Collection.Postman.AccessTokenSpan = { Id: "span_postman_accesstoken", Name: "Access Token URL" }; +DRB.DOM.Collection.Postman.AccessTokenInput = { Id: "txt_postman_accesstoken" }; +DRB.DOM.Collection.Postman.ScopeSpan = { Id: "span_postman_scope", Name: "Scope" }; +DRB.DOM.Collection.Postman.ScopeInput = { Id: "txt_postman_scope" }; +DRB.DOM.Collection.Postman.ResourceSpan = { Id: "span_postman_resource", Name: "Resource" }; +DRB.DOM.Collection.Postman.ResourceInput = { Id: "txt_postman_resource" }; + +// Request Type +DRB.DOM.RequestType = {}; +DRB.DOM.RequestType.Div = { Id: "request_name", Name: "Request Name" }; +DRB.DOM.RequestType.Span = { Id: "span_request", Name: "Request Type" }; +DRB.DOM.RequestType.Dropdown = { Id: "cbx_requesttype", Name: "Select a Request Type" }; + +// Table +DRB.DOM.Table = {}; +DRB.DOM.Table.Span = { Id: "span_table", Name: "Table" }; +DRB.DOM.Table.Dropdown = { Id: "cbx_table", Name: "Select a Table" }; + +// Columns +DRB.DOM.Columns = {}; +DRB.DOM.Columns.Div = { Id: "div_columns", Class: "sameline" }; +DRB.DOM.Columns.Button = { Id: "btn_columns", Name: "Select Columns" }; +DRB.DOM.Columns.Span = { Id: "span_columns", Name: "Columns" }; +DRB.DOM.Columns.Dropdown = { Id: "cbx_columns", Name: "Select Columns" }; + +// File Column +DRB.DOM.FileColumn = {}; +DRB.DOM.FileColumn.Div = { Id: "div_filecolumn", Class: "sameline" }; +DRB.DOM.FileColumn.Span = { Id: "span_filecolumn", Name: "File Column" }; +DRB.DOM.FileColumn.Dropdown = { Id: "cbx_filecolumn", Name: "Select File Column" }; + +// Image Column +DRB.DOM.ImageColumn = {}; +DRB.DOM.ImageColumn.Span = { Name: "Image Column" }; +DRB.DOM.ImageColumn.Dropdown = { Name: "Select Image Column" }; + +// File Operation +DRB.DOM.FileOperation = {}; +DRB.DOM.FileOperation.Span = { Id: "span_fileoperation", Name: "Operation" }; +DRB.DOM.FileOperation.Dropdown = { Id: "cbx_fileoperation", Name: "Select Operation" }; + +// File Name +DRB.DOM.FileName = {}; +DRB.DOM.FileName.Div = { Id: "div_filename" }; +DRB.DOM.FileName.Span = { Id: "span_filename", Name: "File Name" }; +DRB.DOM.FileName.Input = { Id: "txt_filename" }; + +// File Full Size +DRB.DOM.FileFullSize = {}; +DRB.DOM.FileFullSize.Div = { Id: "div_filefullsize", Class: "sameline" }; +DRB.DOM.FileFullSize.Span = { Id: "span_filefullsize", Name: " Full Size" }; +DRB.DOM.FileFullSize.CheckBox = { Id: "chk_filefullsize" }; + +// Image Buttons +DRB.DOM.FileContent = {}; +DRB.DOM.FileContent.Div = { Id: "div_filecontent" }; +DRB.DOM.FileContent.LoadInput = { Id: "inp_loadfile_" }; +DRB.DOM.FileContent.LoadButton = { Id: "btn_loadfile_", Name: "Load", Class: "btn-outline-secondary" }; +DRB.DOM.FileContent.ShowButton = { Id: "btn_showfile_", Name: "Show", Class: "btn-outline-secondary" }; +DRB.DOM.FileContent.DownloadButton = { Id: "btn_downloadfile_", Name: "Download", Class: "btn-outline-secondary" }; +DRB.DOM.FileContent.RemoveButton = { Id: "btn_removefile_", Name: "Remove", Class: "btn-outline-secondary" }; + +// Relationships +DRB.DOM.DivRelationship = { Id: "div_relationships" }; +DRB.DOM.Relationship = {}; +DRB.DOM.Relationship.OneToMany = {}; +DRB.DOM.Relationship.OneToMany.Span = { Id: "span_onetomany", Name: "One To Many Relationships " }; +DRB.DOM.Relationship.OneToMany.Dropdown = { Id: "cbx_onetomany", Name: "Selected Columns" }; +DRB.DOM.Relationship.OneToMany.Button = { Id: "btn_onetomany", Name: "Select", Class: "btn-outline-secondary" }; +DRB.DOM.Relationship.ManyToOne = {}; +DRB.DOM.Relationship.ManyToOne.Span = { Id: "span_manytoone", Name: "Many To One Relationships " }; +DRB.DOM.Relationship.ManyToOne.Dropdown = { Id: "cbx_manytoone", Name: "Selected Columns" }; +DRB.DOM.Relationship.ManyToOne.Button = { Id: "btn_manytoone", Name: "Select", Class: "btn-outline-secondary" }; +DRB.DOM.Relationship.ManyToMany = {}; +DRB.DOM.Relationship.ManyToMany.Span = { Id: "span_manytomany", Name: "Many To Many Relationships" }; +DRB.DOM.Relationship.ManyToMany.Dropdown = { Id: "cbx_manytomany", Name: "Selected Columns" }; +DRB.DOM.Relationship.ManyToMany.Button = { Id: "btn_manytomany", Name: "Select", Class: "btn-outline-secondary" }; + +// Relationship Selection +DRB.DOM.RelationshipSelect = {}; +DRB.DOM.RelationshipSelect.Div = { Id: "div_relationshipselect" }; +DRB.DOM.RelationshipSelect.Relationship = {}; +DRB.DOM.RelationshipSelect.Relationship.Span = { Id: "span_relationshipselect", Name: "Relationship" }; +DRB.DOM.RelationshipSelect.Relationship.Dropdown = { Id: "cbx_relationshipselect", Name: "Select a Relationship" }; +DRB.DOM.RelationshipSelect.Columns = {}; +DRB.DOM.RelationshipSelect.Columns.Span = { Id: "span_relationshipselectcolumns", Name: "Columns" }; +DRB.DOM.RelationshipSelect.Columns.Dropdown = { Id: "cbx_relationshipselectcolumns", Name: "Select Columns" }; + +// Version +DRB.DOM.Version = {}; +DRB.DOM.Version.Span = { Id: "span_version", Name: "Version" }; +DRB.DOM.Version.Dropdown = { Id: "cbx_version", Name: "Version" }; + +// Process +DRB.DOM.Process = {}; +DRB.DOM.Process.Span = { Id: "span_process", Name: "Process" }; +DRB.DOM.Process.Dropdown = { Id: "cbx_process", Name: "Process" }; + +// Token Header +DRB.DOM.TokenHeader = {}; +DRB.DOM.TokenHeader.Span = { Id: "span_tokenheader", Name: "Token Header" }; +DRB.DOM.TokenHeader.Dropdown = { Id: "cbx_tokenheader", Name: "Token Header" }; + +// Impersonate +DRB.DOM.Impersonate = {}; +DRB.DOM.Impersonate.Span = { Id: "span_impersonate", Name: "Impersonate" }; +DRB.DOM.Impersonate.Dropdown = { Id: "cbx_impersonate", Name: "Impersonate" }; + +// Impersonate Id +DRB.DOM.ImpersonateId = {}; +DRB.DOM.ImpersonateId.Div = { Id: "div_impersonateid", Class: "sameline" }; +DRB.DOM.ImpersonateId.TypeSpan = { Id: "span_impersonatetype", Name: "Type" }; +DRB.DOM.ImpersonateId.Dropdown = { Id: "cbx_impersonatetype", Name: "Type" }; +DRB.DOM.ImpersonateId.Span = { Id: "span_impersonateid", Name: "Id" }; +DRB.DOM.ImpersonateId.Input = { Id: "txt_impersonateid" }; +DRB.DOM.ImpersonateId.Lookup = { Id: "lkp_impersonateid" }; + +// Formatted Values +DRB.DOM.FormattedValues = {}; +DRB.DOM.FormattedValues.Span = { Id: "span_formattedvalues", Name: "Formatted Values" }; +DRB.DOM.FormattedValues.Dropdown = { Id: "cbx_formattedvalues", Name: "Formatted Values" }; + +// Detect Changes +DRB.DOM.DetectChanges = {}; +DRB.DOM.DetectChanges.Span = { Id: "span_detectchanges", Name: "Detect Changes" }; +DRB.DOM.DetectChanges.Dropdown = { Id: "cbx_detectchanges", Name: "Detect Changes" }; + +// Return Record +DRB.DOM.ReturnRecord = {}; +DRB.DOM.ReturnRecord.Span = { Id: "span_returnrecord", Name: "Return Record" }; +DRB.DOM.ReturnRecord.Dropdown = { Id: "cbx_returnrecord", Name: "Return Record" }; + +// Detect Duplicates +DRB.DOM.DetectDuplicates = {}; +DRB.DOM.DetectDuplicates.Span = { Id: "span_detectduplicates", Name: "Detect Duplicates" }; +DRB.DOM.DetectDuplicates.Dropdown = { Id: "cbx_detectduplicates", Name: "Detect Duplicates" }; + +// Prevent +DRB.DOM.Prevent = {}; +DRB.DOM.Prevent.Span = { Id: "span_prevent", Name: "Prevent" }; +DRB.DOM.Prevent.Dropdown = { Id: "cbx_prevent", Name: "Prevent" }; + +// Retrieve Count +DRB.DOM.RetrieveCount = {}; +DRB.DOM.RetrieveCount.Span = { Id: "span_retrievecount", Name: "Retrieve Count" }; +DRB.DOM.RetrieveCount.Dropdown = { Id: "cbx_retrievecount", Name: "Retrieve Count" }; + +// Top Count +DRB.DOM.TopCount = {}; +DRB.DOM.TopCount.Span = { Id: "span_topcount", Name: "Top Count" }; +DRB.DOM.TopCount.Input = { Id: "txt_topcount" }; + +// Primary Id +DRB.DOM.PrimaryId = {}; +DRB.DOM.PrimaryId.Div = { Id: "div_primaryid" }; +DRB.DOM.PrimaryId.Span = { Id: "span_primaryid", Name: "Primary Id" }; +DRB.DOM.PrimaryId.Input = { Id: "txt_primaryid" }; +DRB.DOM.PrimaryId.Lookup = { Id: "lkp_primaryid" }; + +// Use Alternate Key +DRB.DOM.UseAlternateKey = {}; +DRB.DOM.UseAlternateKey.Span = { Id: "span_usealternatekey", Name: "Use Alternate Key" }; +DRB.DOM.UseAlternateKey.Dropdown = { Id: "cbx_usealternatekey", Name: "Use Alternate Key" }; + +// Alternate Key +DRB.DOM.AlternateKey = {}; +DRB.DOM.AlternateKey.Div = { Id: "div_alternatekey" }; +DRB.DOM.AlternateKey.Span = { Id: "span_alternatekey", Name: "Alternate Key" }; +DRB.DOM.AlternateKey.Dropdown = { Id: "cbx_alternatekey", Name: "Select an Alternate Key" }; +DRB.DOM.AlternateKey.DivColumns = { Id: "div_alternatekeycolumns" }; + +// Alternate Key Table, Tr, Td, Control +DRB.DOM.AlternateKey.Table = { Id: "table_alternatekey" }; +DRB.DOM.AlternateKey.Tr = { Id: "tr_alternatekey_" }; +DRB.DOM.AlternateKey.TdColumn = { Id: "td_alternatekey_column_" }; +DRB.DOM.AlternateKey.TdValue = { Id: "td_alternatekey_value_" }; +DRB.DOM.AlternateKey.ControlValue = { Id: "alternatekey_value_" }; + +// #region Retrieve Multiple +// Filter By +DRB.DOM.FilterBy = {}; +DRB.DOM.FilterBy.MainDiv = { Id: "div_main_fb", Class: "mapping-container" }; +DRB.DOM.FilterBy.MainSpan = { Id: "span_main_fb", Name: "Filter By" }; +DRB.DOM.FilterBy.StartButton = { Id: "btn_startfb_", Name: "Start", Class: "btn-primary" }; +// Filter Groups +DRB.DOM.FilterGroups = {}; +DRB.DOM.FilterGroups.MainDiv = { Id: "div_main_fg_", Class: "mapping-container" }; +DRB.DOM.FilterGroups.MainSpan = { Id: "span_main_fg_", Name: "" }; +DRB.DOM.FilterGroups.DivGroups = { Id: "div_fg_groups_" }; +DRB.DOM.FilterGroups.Div = { Id: "div_fg_", Class: "mapping-container" }; + +DRB.DOM.FilterGroups.DivOptions = { Id: "div_fg_options_" }; +DRB.DOM.FilterGroups.AddButton = { Id: "btn_addfg_", Name: "Add Group", Class: "btn-primary" }; +DRB.DOM.FilterGroups.DivLogic = { Id: "div_fg_fl_", Class: "sameline" }; +DRB.DOM.FilterGroups.SpanLogic = { Id: "span_fg_", Name: "Logic between Groups" }; +DRB.DOM.FilterGroups.DropdownLogic = { Id: "cbx_fg_", Name: "Select Operator" }; + +DRB.DOM.FilterGroups.DivChoice = { Id: "div_fg_choice_" }; +DRB.DOM.FilterGroups.ButtonChoice = { Id: "btn_fg_choice_", Name: "Add", Class: "btn-danger dropdown-toggle" }; +DRB.DOM.FilterGroups.DivDropdownChoice = { Id: "div_fg_dropdownchoice_", Class: "dropdown-menu" }; +DRB.DOM.FilterGroups.ButtonChoiceColumns = { Id: "btn_fg_addcolumns_", Name: "Filter Columns", Class: "dropdown-item" }; +DRB.DOM.FilterGroups.ButtonChoiceGroups = { Id: "btn_fg_addgroups_", Name: "Filter Groups", Class: "dropdown-item" }; + +// Filter Columns table, tr, td +DRB.DOM.FilterColumns = {}; +DRB.DOM.FilterColumns.MainDiv = { Id: "div_main_fc_", Class: "mapping-container3" }; +DRB.DOM.FilterColumns.MainSpan = { Id: "span_main_fc_", Name: "" }; +DRB.DOM.FilterColumns.Div = { Id: "div_fc_" }; +DRB.DOM.FilterColumns.Table = { Id: "table_fc_" }; +DRB.DOM.FilterColumns.Tr = { Id: "tr_fc_" }; +DRB.DOM.FilterColumns.Dropdown = { Id: "cbx_fc_", Name: "Select Column" }; +DRB.DOM.FilterColumns.TdColumn = { Id: "td_fclabel_", Name: "Filter Column" }; +DRB.DOM.FilterColumns.TdOperator = { Id: "td_fcoperator_", Name: "Operator" }; +DRB.DOM.FilterColumns.TdValue = { Id: "td_fcvalue_", Name: "Value" }; +DRB.DOM.FilterColumns.DivOperator = { Id: "div_fc_operator_" }; +DRB.DOM.FilterColumns.ControlOperator = { Id: "fc_operator_" }; +DRB.DOM.FilterColumns.DivValue = { Id: "div_fc_value_" }; +DRB.DOM.FilterColumns.ControlValue = { Id: "fc_value_" }; + +DRB.DOM.FilterColumns.AddButton = { Id: "btn_addfc_", Name: "Add Column", Class: "btn-primary" }; +DRB.DOM.FilterColumns.DivLogic = { Id: "div_fc_fl_", Class: "sameline" }; +DRB.DOM.FilterColumns.SpanLogic = { Id: "span_fc_", Name: "Logic between Columns" }; +DRB.DOM.FilterColumns.DropdownLogic = { Id: "cbx_fc_", Name: "Select Operator" }; + +// Order Columns table, tr, td +DRB.DOM.OrderColumns = {}; +DRB.DOM.OrderColumns.MainDiv = { Id: "div_main_oc", Class: "mapping-container" }; +DRB.DOM.OrderColumns.MainSpan = { Id: "span_main_oc", Name: "Order By" }; +DRB.DOM.OrderColumns.Div = { Id: "div_oc_" }; +DRB.DOM.OrderColumns.Table = { Id: "table_oc_" }; +DRB.DOM.OrderColumns.Tr = { Id: "tr_oc_" }; +DRB.DOM.OrderColumns.Dropdown = { Id: "cbx_oc_", Name: "Select Column" }; +DRB.DOM.OrderColumns.TdColumn = { Id: "td_oclabel_", Name: "Column" }; +DRB.DOM.OrderColumns.TdValue = { Id: "td_ocvalue_", Name: "Value" }; +DRB.DOM.OrderColumns.DivValue = { Id: "div_oc_value_" }; +DRB.DOM.OrderColumns.ControlValue = { Id: "oc_value_" }; +DRB.DOM.OrderColumns.AddButton = { Id: "btn_addoc_", Name: "Add Column", Class: "btn-primary" }; + +// Set Columns table, tr, td +DRB.DOM.SetColumns = {}; +DRB.DOM.SetColumns.MainDiv = { Id: "div_main_sc", Class: "mapping-container" }; +DRB.DOM.SetColumns.MainSpan = { Id: "span_main_sc", Name: "" }; +DRB.DOM.SetColumns.Div = { Id: "div_sc_" }; +DRB.DOM.SetColumns.Table = { Id: "table_sc_" }; +DRB.DOM.SetColumns.Tr = { Id: "tr_sc_" }; +DRB.DOM.SetColumns.Dropdown = { Id: "cbx_sc_", Name: "Select Column" }; +DRB.DOM.SetColumns.TdColumn = { Id: "td_sclabel_", Name: "Column" }; +DRB.DOM.SetColumns.TdValue = { Id: "td_scvalue_", Name: "Value" }; +DRB.DOM.SetColumns.DivValue = { Id: "div_sc_value_" }; +DRB.DOM.SetColumns.ControlValue = { Id: "sc_value_" }; +DRB.DOM.SetColumns.AddButton = { Id: "btn_addsc_", Name: "Add Column", Class: "btn-primary" }; +// #endregion + +// Arrows +DRB.DOM.ArrowUp = { Id: "btn_up_" }; +DRB.DOM.ArrowBeforeUp = { Id: "btn_beforeup_" }; +DRB.DOM.ArrowDown = { Id: "btn_down_" }; +DRB.DOM.ArrowAfterDown = { Id: "btn_afterdown_" }; + +// Image Buttons +DRB.DOM.Image = {}; +DRB.DOM.Image.LoadInput = { Id: "inp_loadimage_" }; +DRB.DOM.Image.LoadButton = { Id: "btn_loadimage_", Name: "Load", Class: "btn-outline-secondary columnbutton" }; +DRB.DOM.Image.ShowButton = { Id: "btn_showimage_", Name: "Show", Class: "btn-outline-secondary" }; +DRB.DOM.Image.RemoveButton = { Id: "btn_removeimage_", Name: "Remove", Class: "btn-outline-secondary" }; + +// #region Association +// Parent Table +DRB.DOM.ParentTable = {}; +DRB.DOM.ParentTable.Span = { Id: "span_parenttable", Name: "Parent Table" }; +DRB.DOM.ParentTable.Dropdown = { Id: "cbx_parenttable", Name: "Select a Table" }; + +// Child Table +DRB.DOM.ChildTable = {}; +DRB.DOM.ChildTable.Span = { Id: "span_childtable", Name: "Child Table" }; +DRB.DOM.ChildTable.Dropdown = { Id: "cbx_childtable", Name: "Select a Table" }; + +// Parent Relationship +DRB.DOM.ParentRelationship = {}; +DRB.DOM.ParentRelationship.Span = { Id: "span_parentrelationship", Name: "Relationship" }; +DRB.DOM.ParentRelationship.Dropdown = { Id: "cbx_parentrelationship", Name: "Select a Relationship" }; + +// Child Id +DRB.DOM.ChildId = {}; +DRB.DOM.ChildId.Div = { Id: "div_childid" }; +DRB.DOM.ChildId.DivPrefix = { Id: "div_childid_" }; +DRB.DOM.ChildId.SpanPrefix = { Id: "span_childid_", Name: "Child Id" }; +DRB.DOM.ChildId.InputPrefix = { Id: "txt_childid_" }; +DRB.DOM.ChildId.LookupPrefix = { Id: "lkp_childid_" }; +DRB.DOM.ChildId.RemoveButtonPrefix = { Id: "btn_childidremove_", Name: "x", Class: "btn-outline-secondary closebutton" }; +DRB.DOM.ChildId.AddButton = { Id: "btn_childidadd", Name: "Add Child Id", Class: "btn-outline-secondary" }; +// #endregion + +// #region NextLink +// NextLink +DRB.DOM.NextLink = {}; +DRB.DOM.NextLink.Div = { Id: "div_nextlink" }; +DRB.DOM.NextLink.Span = { Id: "span_nextlink", Name: "Next Link" }; +DRB.DOM.NextLink.Input = { Id: "txt_nextlink" }; + +// NextLink Parsed +DRB.DOM.NextLink.Parsed = {}; +DRB.DOM.NextLink.Parsed.Div = { Id: "div_parsed" }; +DRB.DOM.NextLink.Parsed.MainSpan = { Id: "span_mainparsed", Name: "" }; +DRB.DOM.NextLink.Parsed.Span = { Id: "span_parsed", Name: "Columns" }; +DRB.DOM.NextLink.Parsed.Dropdown = { Id: "cbx_parsed", Name: "Columns" }; +// #endregion + +// #region Predefined Query +// Query Type +DRB.DOM.QueryType = {}; +DRB.DOM.QueryType.Span = { Id: "span_querytype", Name: "Query Type" }; +DRB.DOM.QueryType.Dropdown = { Id: "cbx_querytype", Name: "Query Type" }; + +// System View Id +DRB.DOM.SystemViewId = {}; +DRB.DOM.SystemViewId.Div = { Id: "div_systemviewid" }; +DRB.DOM.SystemViewId.Span = { Id: "span_systemviewid", Name: "View Id" }; +DRB.DOM.SystemViewId.Input = { Id: "txt_systemviewid" }; +DRB.DOM.SystemViewId.Lookup = { Id: "lkp_systemviewid" }; + +// Personal View Id +DRB.DOM.PersonalViewId = {}; +DRB.DOM.PersonalViewId.Div = { Id: "div_personalviewid" }; +DRB.DOM.PersonalViewId.Span = { Id: "span_personalviewid", Name: "View Id" }; +DRB.DOM.PersonalViewId.SpanDropdown = { Id: "span_personalview", Name: "Personal View" }; +DRB.DOM.PersonalViewId.Dropdown = { Id: "cbx_personalview", Name: "Select Personal View" }; +DRB.DOM.PersonalViewId.Input = { Id: "txt_personalviewid" }; + +// FetchXML +DRB.DOM.FetchXML = {}; +DRB.DOM.FetchXML.Div = { Id: "div_fetchxml" }; +DRB.DOM.FetchXML.Span = { Id: "span_fetchxml", Name: "Fetch XML" }; +DRB.DOM.FetchXML.Editor = { Id: "editor_fetchxml", Class: "code_editor" }; +// #endregion + +// #region Dataverse Execute +// Dataverse Custom API +DRB.DOM.DataverseCustomAPI = {}; +DRB.DOM.DataverseCustomAPI.Span = { Name: "Custom API" }; +DRB.DOM.DataverseCustomAPI.Dropdown = { Name: "Select a Custom API" }; + +// Dataverse Custom Action +DRB.DOM.DataverseCustomAction = {}; +DRB.DOM.DataverseCustomAction.Span = { Name: "Custom Action" }; +DRB.DOM.DataverseCustomAction.Dropdown = { Name: "Select a Custom Action" }; + +// Dataverse Action +DRB.DOM.DataverseAction = {}; +DRB.DOM.DataverseAction.Span = { Name: "Action" }; +DRB.DOM.DataverseAction.Dropdown = { Name: "Select an Action" }; + +// Dataverse Function +DRB.DOM.DataverseFunction = {}; +DRB.DOM.DataverseFunction.Span = { Name: "Function" }; +DRB.DOM.DataverseFunction.Dropdown = { Name: "Select a Function" }; + +// Dataverse Execute +DRB.DOM.DataverseExecute = {}; +DRB.DOM.DataverseExecute.Span = { Id: "span_dvexecute", Name: "" }; +DRB.DOM.DataverseExecute.Dropdown = { Id: "cbx_dvexecute", Name: "" }; + +// Dataverse Parameters +DRB.DOM.DataverseParameters = {}; +DRB.DOM.DataverseParameters.Div = { Id: "div_dvparameters", Class: "mapping-container" }; + +// Dataverse Properties Table, Tr, Td +DRB.DOM.DataverseParameters.Table = { Id: "table_dvproperties" }; +DRB.DOM.DataverseParameters.Tr = { Id: "tr_dvp_" }; +DRB.DOM.DataverseParameters.TdOptional = { Id: "td_dvp_optional_", Name: "Optional" }; +DRB.DOM.DataverseParameters.TdInclude = { Id: "td_dvp_include_", Name: "Include" }; +DRB.DOM.DataverseParameters.CheckboxInclude = { Id: "chk_dvp_include_" }; + +DRB.DOM.DataverseParameters.TdName = { Id: "td_dvp_name_", Name: "Parameter" }; +DRB.DOM.DataverseParameters.TdType = { Id: "td_dvp_type_", Name: "Type" }; +DRB.DOM.DataverseParameters.TdValue = { Id: "td_dvp_value_", Name: "Value" }; +DRB.DOM.DataverseParameters.SpanName = { Id: "td_dvp_name_" }; +DRB.DOM.DataverseParameters.DivValue = { Id: "div_dvp_value_" }; +DRB.DOM.DataverseParameters.ControlValue = { Id: "dvp_value_" }; +DRB.DOM.DataverseParameters.DivCollectionValue = { Id: "div_dvp_collectionvalue_" }; +DRB.DOM.DataverseParameters.DivCollectionControlValue = { Id: "div_dvp_collectioncontrolvalue_", Class: "collectioncontroldiv" }; +DRB.DOM.DataverseParameters.AddButton = { Id: "btn_dvp_add_", Name: "Add", Class: "btn-primary columnbutton" }; + +// Dataverse ReturnType +DRB.DOM.DataverseReturnType = {}; +DRB.DOM.DataverseReturnType.Span = { Id: "span_dvreturntype" }; + +// Dataverse ReturnType Table, Tr, Td +DRB.DOM.DataverseReturnType.Table = { Id: "table_dvreturntype" }; +DRB.DOM.DataverseReturnType.Tr = { Id: "tr_dvrt_" }; +DRB.DOM.DataverseReturnType.TdName = { Id: "td_dvrt_name_", Name: "Name" }; +DRB.DOM.DataverseReturnType.TdType = { Id: "td_dvrt_type_", Name: "Type" }; +// #endregion + +// #region Execute Workflow +DRB.DOM.WorkflowId = {}; +DRB.DOM.WorkflowId.Span = { Id: "span_workflowid", Name: "Workflow Id" }; +DRB.DOM.WorkflowId.Input = { Id: "txt_workflowid" }; +DRB.DOM.WorkflowId.Lookup = { Id: "lkp_workflowid" }; +// #endregion + +// #region Power Automate +DRB.DOM.PowerAutomate = {}; + +DRB.DOM.PowerAutomate.Table = { Id: "table_powerautomate" }; +DRB.DOM.PowerAutomate.Tr = { Id: "tr_pa_" }; +DRB.DOM.PowerAutomate.TdLabel = { Id: "td_pa_label_" }; +DRB.DOM.PowerAutomate.TdValue = { Id: "td_pa_value_" }; +DRB.DOM.PowerAutomate.TdCopy = { Id: "td_pa_copy_" }; + +DRB.DOM.PowerAutomate.ButtonCopy = { Id: "btn_pa_copy_", Name: "Copy", Class: "btn-secondary" }; + +DRB.DOM.PowerAutomate.SpanTitleRetrieveSingle = { Id: "span_title", Name: "Get a row by ID", Class: "font-weight-bold" }; +DRB.DOM.PowerAutomate.SpanTitleRetrieveMultiple = { Id: "span_title", Name: "List rows", Class: "font-weight-bold" }; + +DRB.DOM.PowerAutomate.TableNameSpan = { Id: "span_tablename", Name: "Table name" }; +DRB.DOM.PowerAutomate.TableNameInput = { Id: "txt_tablename" }; +DRB.DOM.PowerAutomate.RowIDSpan = { Id: "span_rowid", Name: "Row ID" }; +DRB.DOM.PowerAutomate.RowIDInput = { Id: "txt_rowid" }; +DRB.DOM.PowerAutomate.SelectColumnsSpan = { Id: "span_selectcolumns", Name: "Select columns" }; +DRB.DOM.PowerAutomate.SelectColumnsInput = { Id: "txt_selectcolumns" }; +DRB.DOM.PowerAutomate.ExpandQuerySpan = { Id: "span_expandquery", Name: "Expand Query" }; +DRB.DOM.PowerAutomate.ExpandQueryInput = { Id: "txt_expandquery" }; +DRB.DOM.PowerAutomate.FilterRowsSpan = { Id: "span_filterrows", Name: "Filter rows" }; +DRB.DOM.PowerAutomate.FilterRowsInput = { Id: "txt_filterrows" }; +DRB.DOM.PowerAutomate.SortBySpan = { Id: "span_sortby", Name: "Sort By" }; +DRB.DOM.PowerAutomate.SortByInput = { Id: "txt_sortby" }; +DRB.DOM.PowerAutomate.RowCountSpan = { Id: "span_rowcount", Name: "Row count" }; +DRB.DOM.PowerAutomate.RowCountInput = { Id: "txt_rowcount" }; +// #endregion + +// #region Lookup +DRB.DOM.Lookup = {}; +DRB.DOM.Lookup.Div = { Id: "div_lookup" }; +DRB.DOM.Lookup.TableSpan = { Id: "span_tablelookup", Name: "Table" }; +DRB.DOM.Lookup.TableDropdown = { Id: "cbx_tablelookup" }; +DRB.DOM.Lookup.InputSpan = { Id: "span_inputlookup", Name: "Primary Column" }; +DRB.DOM.Lookup.Input = { Id: "cbx_inputlookup" }; +DRB.DOM.Lookup.SearchButton = { Id: "btn_searchlookup", Name: "Search", Class: "btn-secondary" }; +DRB.DOM.Lookup.Table = { Id: "table_lookup" }; +DRB.DOM.Lookup.Tr = { Id: "tr_lookup_" }; +DRB.DOM.Lookup.TdLabel = { Id: "td_lookup_label_" }; +DRB.DOM.Lookup.TdValue = { Id: "td_lookup_value_" }; + +DRB.DOM.Lookup.HeaderIDSpan = { Id: "span_lookup_header_id", Name: "ID" }; +DRB.DOM.Lookup.HeaderPrimaryColumnSpan = { Id: "span_lookup_header_primarycolumn", Name: "Primary Column" }; +DRB.DOM.Lookup.SelectButton = { Id: "btn_selectlookup_", Name: "Select", Class: "btn-outline-secondary" }; +DRB.DOM.Lookup.NoRecordsSpan = { Id: "span_norecordslookup", Name: "No Records" }; // #region DRB.Utilities +// #endregion +// #endregion + +/** + * Utilities - Has Value + * Returns true if a parameter is not undefined, not null and not an empty string, otherwise returns false + * @param {any} parameter Parameter to check + */ +DRB.Utilities.HasValue = function (parameter) { + if (parameter !== undefined && parameter !== null && parameter !== "") { + return true; + } else { + return false; + } +}; + +/** + * Utilities - Local Storage Available + * Check if localStorage is available + */ +DRB.Utilities.LocalStorageAvailable = function () { + try { + localStorage.setItem("DRB_CheckLocalStorage", "DRB"); + localStorage.removeItem("DRB_CheckLocalStorage"); + return true; + } catch (e) { + return false; + } +}; + +/** + * Utilities - Generate Guid + * Returns a Random Guid with options to add Braces or Upper Case + * @param {boolean} braces if the Guid contains braces + * @param {boolean} upperCase if the Guid is returned as Upper Case + */ +DRB.Utilities.GenerateGuid = function (braces, upperCase) { + var randomGuid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/x/g, function (c) { + var r = (Math.random() * 16) | 0, + v = c === "x" ? r : (r & 0x3) | 0x8; + return v.toString(16); + }); + if (braces === true) { + randomGuid = "{" + randomGuid + "}"; + } + if (upperCase === true) { + randomGuid = randomGuid.toUpperCase(); + } + return randomGuid; +}; + +/** + * Utilities - Remove Duplicates From Array + * Returns a new Array without duplicates + * @param {any[]} array Array to check + */ +DRB.Utilities.RemoveDuplicatesFromArray = function (array) { + var values = array.filter(function (item, pos) { + return array.indexOf(item) === pos; + }); + return values; +}; + +/** + * Utilities - Get Record By Property + * Returns a Record matching the property and the value passed + * @param {any[]} records Records + * @param {string} propertyName Property Name + * @param {any} propertyValue Property Value + */ +DRB.Utilities.GetRecordByProperty = function (records, propertyName, propertyValue) { + if (Array.isArray(records)) { + for (var count = 0; count < records.length; count++) { + if (records[count].hasOwnProperty(propertyName) && records[count][propertyName] == propertyValue) { + return records[count]; + } + } + } + return null; +}; + +/** + * Utilities - Get Record By Id + * Returns a record matching the id + * @param {any[]} records Records + * @param {any} id Id + */ +DRB.Utilities.GetRecordById = function (records, id) { + return DRB.Utilities.GetRecordByProperty(records, "Id", id); +}; + +/** + * Utilities - Custom Sort + * sort an array on a specific property, minus sign (-) in front of the property defines a reverse sort + * @param {string} property Property Name + */ +DRB.Utilities.CustomSort = function (property) { + var sortOrder = 1; + if (property[0] === "-") { + sortOrder = -1; + property = property.substr(1); + } + + return function (a, b) { + var result = a[property].toLowerCase() < b[property].toLowerCase() ? -1 : a[property].toLowerCase() > b[property].toLowerCase() ? 1 : 0; + return result * sortOrder; + }; +}; // #region DRB.Xrm.GetDemoData +// #endregion + +/** + * Get Demo Data based on parameters + * @param {any[]} queries Queries + */ +DRB.Xrm.GetDemoDataBatch = function (queries) { + var fakeHeaderStart = [ + "--batchresponse_00000000-0000-0000-0000-000000000000", + "Content-Type: application/http", + "Content-Transfer-Encoding: binary", + "", + "HTTP/1.1 200 OK", + "Content-Type: application/json; odata.metadata=minimal", + "OData-Version: 4.0", + 'Preference-Applied: odata.include-annotations="*"', + "", + ].join("\r\n"); + var fakeHeaderEnd = "--batchresponse_00000000-0000-0000-0000-000000000000--"; + var emptyLine = ["", ""].join("\r\n"); + + var entity_Contact = { SchemaName: "Contact", LogicalName: "contact", EntitySetName: "contacts", PrimaryIdAttribute: "contactid", PrimaryNameAttribute: "fullname" }; + var entity_Team = { SchemaName: "Team", LogicalName: "team", EntitySetName: "teams", PrimaryIdAttribute: "teamid", PrimaryNameAttribute: "name" }; + var entity_User = { + SchemaName: "SystemUser", + LogicalName: "systemuser", + EntitySetName: "systemusers", + PrimaryIdAttribute: "systemuserid", + PrimaryNameAttribute: "fullname", + DisplayName: { UserLocalizedLabel: { Label: "User" } }, + }; + var entity_CustomTable = { + SchemaName: "sample_CustomTable", + LogicalName: "sample_customtable", + EntitySetName: "sample_customtables", + PrimaryIdAttribute: "sample_customtableid", + PrimaryNameAttribute: "sample_name", + DisplayName: { UserLocalizedLabel: { Label: "Custom Table" } }, + }; + var entity_CustomTable2 = { + SchemaName: "new_CustomTable", + LogicalName: "new_customtable", + EntitySetName: "new_customtables", + PrimaryIdAttribute: "new_customtableid", + PrimaryNameAttribute: "new_name", + DisplayName: { UserLocalizedLabel: { Label: "Custom Table (New)" } }, + }; + + var entity_Account = { SchemaName: "Account", LogicalName: "account", EntitySetName: "accounts", PrimaryIdAttribute: "accountid", PrimaryNameAttribute: "name" }; + + var columns_Contact = []; + columns_Contact.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "FirstName", + LogicalName: "firstname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 100, + DisplayName: { UserLocalizedLabel: { Label: "First Name" } }, + }); + columns_Contact.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "FullName", + LogicalName: "fullname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: true, + IsValidForRead: true, + IsValidForCreate: false, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Full Name" } }, + }); + columns_Contact.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "LastName", + LogicalName: "lastname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 100, + DisplayName: { UserLocalizedLabel: { Label: "Last Name" } }, + }); + columns_Contact.push({ + SchemaName: "ContactId", + LogicalName: "contactid", + AttributeType: "Uniqueidentifier", + IsPrimaryId: true, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Contact" } }, + }); + + var columns_Team = []; + columns_Team.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "Name", + LogicalName: "name", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: true, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Name" } }, + }); + columns_Team.push({ + SchemaName: "TeamId", + LogicalName: "teamid", + AttributeType: "Uniqueidentifier", + IsPrimaryId: true, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Team" } }, + }); + + var columns_Account = []; + columns_Account.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "Name", + LogicalName: "name", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: true, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 100, + DisplayName: { UserLocalizedLabel: { Label: "Name" } }, + }); + columns_Account.push({ + SchemaName: "AccountId", + LogicalName: "accountid", + AttributeType: "Uniqueidentifier", + IsPrimaryId: true, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Account" } }, + }); + + //columns_Account = [{ "LogicalName": "preferredcontactmethodcodename", "SchemaName": "PreferredContactMethodCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredcontactmethodcode", "MetadataId": "8663b910-af86-4dea-826e-8222706372f4", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "emailaddress3", "SchemaName": "EMailAddress3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "97fb4aae-ea5d-427f-9b2b-9a6b9754286e", "DisplayName": { "LocalizedLabels": [{ "Label": "Email Address 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1ee8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Email Address 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1ee8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "emailaddress2", "SchemaName": "EMailAddress2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "98b09426-95ab-4f21-87a0-f6775f2b4210", "DisplayName": { "LocalizedLabels": [{ "Label": "Email Address 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d999ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Email Address 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d999ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "emailaddress1", "SchemaName": "EMailAddress1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b254ab69-de5a-4edb-8059-bdeb6863c544", "DisplayName": { "LocalizedLabels": [{ "Label": "Email", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d452c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Email", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d452c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "masteraccountidyominame", "SchemaName": "MasterAccountIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "masterid", "MetadataId": "a15dedfc-9382-43ac-8d10-7773aa3eefeb", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_city", "SchemaName": "Address1_City", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ca8d0a94-8569-4154-b511-718e11635449", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: City", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "02d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: City", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "02d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "slaid", "SchemaName": "SLAId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "6bdcd7f1-5865-4fef-91b0-676824b18641", "DisplayName": { "LocalizedLabels": [{ "Label": "SLA", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "826c8195-c750-4e24-971e-6215c86b34d6", "HasChanged": null }], "UserLocalizedLabel": { "Label": "SLA", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "826c8195-c750-4e24-971e-6215c86b34d6", "HasChanged": null } } }, { "LogicalName": "address2_freighttermscodename", "SchemaName": "Address2_FreightTermsCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address2_freighttermscode", "MetadataId": "0e5266fe-a4c0-4dfa-abcc-698ad97d6fb1", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "modifiedon", "SchemaName": "ModifiedOn", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "47f8395d-1604-414d-b03d-7fde25b5911b", "DisplayName": { "LocalizedLabels": [{ "Label": "Modified On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f5e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Modified On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f5e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging90", "SchemaName": "Aging90", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "66c49a64-dd29-47fd-998c-7abd5ff3c317", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 90", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5f1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 90", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5f1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "overriddencreatedon", "SchemaName": "OverriddenCreatedOn", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "23a69301-1d4e-41bc-adbc-d4c129bb13cf", "DisplayName": { "LocalizedLabels": [{ "Label": "Record Created On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6f36cd93-ec7b-4e4a-8814-6a22ca8d749a", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Record Created On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6f36cd93-ec7b-4e4a-8814-6a22ca8d749a", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "websiteurl", "SchemaName": "WebSiteURL", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "536a48f0-657b-4029-95cd-9472059fc44a", "DisplayName": { "LocalizedLabels": [{ "Label": "Website", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "544901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Website", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "544901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DoubleAttributeMetadata", "LogicalName": "address1_longitude", "SchemaName": "Address1_Longitude", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Double", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "789b772d-99aa-4d96-b463-a75024d33935", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Longitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e199f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Longitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e199f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotpostalmail", "SchemaName": "DoNotPostalMail", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "5a476574-a083-4dc5-ba40-b909fe4890f8", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Mails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d326e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Mails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d326e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdbyexternalpartyname", "SchemaName": "CreatedByExternalPartyName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdbyexternalparty", "MetadataId": "a9ced733-f64e-44a4-8924-c73a79d46a75", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address1_addresstypecode", "SchemaName": "Address1_AddressTypeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "4e51f924-e47d-4f69-811a-cd387c9750d4", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Address Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "bb41b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Address Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "bb41b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "transactioncurrencyid", "SchemaName": "TransactionCurrencyId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "6d36e3a6-3e08-4fbc-aaa7-247eba2ab9f5", "DisplayName": { "LocalizedLabels": [{ "Label": "Currency", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b2d8473e-6978-4b44-b667-3c1f5668aac6", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Currency", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b2d8473e-6978-4b44-b667-3c1f5668aac6", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "sharesoutstanding", "SchemaName": "SharesOutstanding", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c4a20223-61b2-4694-996e-7c02f02efc9e", "DisplayName": { "LocalizedLabels": [{ "Label": "Shares Outstanding", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ef98ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Shares Outstanding", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ef98ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotsendmm", "SchemaName": "DoNotSendMM", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "e282748e-3c74-4cdd-8f21-93fe92faee94", "DisplayName": { "LocalizedLabels": [{ "Label": "Send Marketing Materials", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4052c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Send Marketing Materials", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4052c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "createdbyexternalparty", "SchemaName": "CreatedByExternalParty", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "827e9002-b547-49fc-9e8d-a6b1cfcef33b", "DisplayName": { "LocalizedLabels": [{ "Label": "Created By (External Party)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c72d726a-8f5d-412c-9618-7cc99d8308c8", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Created By (External Party)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c72d726a-8f5d-412c-9618-7cc99d8308c8", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "creditonhold", "SchemaName": "CreditOnHold", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "cc7229b4-bb8b-49a3-a7f8-77e7d89201d7", "DisplayName": { "LocalizedLabels": [{ "Label": "Credit Hold", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ab40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Credit Hold", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ab40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "transactioncurrencyidname", "SchemaName": "TransactionCurrencyIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "transactioncurrencyid", "MetadataId": "3fbc7028-f637-4074-87f5-97cc29ee11d2", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging30", "SchemaName": "Aging30", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "2b4ffdf4-1bf8-4d3d-a075-d123b4ed65ba", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 30", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "569aba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 30", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "569aba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotbulkpostalmail", "SchemaName": "DoNotBulkPostalMail", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "824be9eb-f68e-4db9-9db2-479c1ba4b48b", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Bulk Mails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7c64cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Bulk Mails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7c64cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "yominame", "SchemaName": "YomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "26016ae7-16b4-4cbe-bc34-84ae19e7d6b2", "DisplayName": { "LocalizedLabels": [{ "Label": "Yomi Account Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5095733d-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Yomi Account Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5095733d-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "preferredsystemuseridyominame", "SchemaName": "PreferredSystemUserIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredsystemuserid", "MetadataId": "fa1b1667-91a5-45a6-9852-305e46ba280a", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address1_shippingmethodcode", "SchemaName": "Address1_ShippingMethodCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "064a6cf1-ec3d-4e57-bfb7-011e168cf35f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "af26e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "af26e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "paymenttermscode", "SchemaName": "PaymentTermsCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "94afe94b-4ca6-4d62-9585-ab4670012dfb", "DisplayName": { "LocalizedLabels": [{ "Label": "Payment Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "35d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Payment Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "35d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "slainvokedid", "SchemaName": "SLAInvokedId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "9888d31b-1944-4a65-8856-76234861beb0", "DisplayName": { "LocalizedLabels": [{ "Label": "Last SLA applied", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e9c7c65d-98c8-4484-a6a7-f81d279ed578", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Last SLA applied", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e9c7c65d-98c8-4484-a6a7-f81d279ed578", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "opendeals_date", "SchemaName": "OpenDeals_Date", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "c29a00fc-911a-4389-82b5-aba921d633b5", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Deals (Last Updated On)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0a8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Deals (Last Updated On)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0a8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedbyexternalpartyyominame", "SchemaName": "ModifiedByExternalPartyYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedbyexternalparty", "MetadataId": "9e1d3899-ce30-4a4b-b43c-be1557591c23", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "businesstypecodename", "SchemaName": "BusinessTypeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "businesstypecode", "MetadataId": "3d56b072-cd70-496c-aba7-d2427fd0d19a", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "originatingleadid", "SchemaName": "OriginatingLeadId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "7bf7ed76-77bb-4b70-8086-312df7727588", "DisplayName": { "LocalizedLabels": [{ "Label": "Originating Lead", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2475ec74-f66b-48e3-85ee-f6e90672b8de", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Originating Lead", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2475ec74-f66b-48e3-85ee-f6e90672b8de", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "masteraccountidname", "SchemaName": "MasterAccountIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "masterid", "MetadataId": "192b1df4-81a8-45e2-a061-fe10cda6c62e", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "preferredsystemuseridname", "SchemaName": "PreferredSystemUserIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredsystemuserid", "MetadataId": "c39956b9-f294-466a-8c41-aca97375aad6", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "accountcategorycode", "SchemaName": "AccountCategoryCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "118771ca-6fb9-4f60-8fd4-99b6124b63ad", "DisplayName": { "LocalizedLabels": [{ "Label": "Category", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "08d8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Category", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "08d8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "openrevenue", "SchemaName": "OpenRevenue", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "306845ef-446a-42e5-8df8-11c31bafaded", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Revenue", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f68ff3da-33f2-45b4-813b-b13cb563b02b", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Revenue", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f68ff3da-33f2-45b4-813b-b13cb563b02b", "HasChanged": null } } }, { "LogicalName": "preferredappointmentdaycodename", "SchemaName": "PreferredAppointmentDayCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredappointmentdaycode", "MetadataId": "2401dd40-d2df-4726-bb6c-cb0338557bc5", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_stateorprovince", "SchemaName": "Address2_StateOrProvince", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "38d65451-2d18-4927-9773-5a7023dccd3d", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: State\/Province", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "90aac7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: State\/Province", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "90aac7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "participatesinworkflowname", "SchemaName": "ParticipatesInWorkflowName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "participatesinworkflow", "MetadataId": "916834ae-6e57-4f14-b02a-b2a57b4f6bf0", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "territoryid", "SchemaName": "TerritoryId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "952b5e27-4020-48da-bcf1-f174c67803e8", "DisplayName": { "LocalizedLabels": [{ "Label": "Territory", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6fb5af72-f4ea-4c0b-b800-9ffd1ec1dbb7", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Territory", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6fb5af72-f4ea-4c0b-b800-9ffd1ec1dbb7", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_country", "SchemaName": "Address2_Country", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "95176315-078e-4722-a378-272c9322dc3c", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Country\/Region", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2fd8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Country\/Region", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2fd8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "accountcategorycodename", "SchemaName": "AccountCategoryCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "accountcategorycode", "MetadataId": "c3239726-00d7-4000-9135-f06ea24a423f", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_line2", "SchemaName": "Address2_Line2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "064c0b65-d6c5-4a89-bfc1-24d01001a051", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Street 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84d8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Street 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84d8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging60_base", "SchemaName": "Aging60_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "3ccb47fd-354b-4085-a50f-173e4cb0d41b", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 60 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d1364f36-6283-4e63-880e-1e787ab2a649", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 60 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d1364f36-6283-4e63-880e-1e787ab2a649", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "preferredserviceid", "SchemaName": "PreferredServiceId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ba916f06-fc34-4127-9dc6-9b9ec92adf5f", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred Service", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "26920c0f-38c5-46e3-8b59-e826a597473f", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred Service", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "26920c0f-38c5-46e3-8b59-e826a597473f", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_line3", "SchemaName": "Address1_Line3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "bb0f0f6e-c4a4-4124-a7c3-b579ac0dfae0", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Street 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "3741b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Street 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "3741b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "onholdtime", "SchemaName": "OnHoldTime", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "fc486055-74dd-4b6c-8005-8aec67ffe0df", "DisplayName": { "LocalizedLabels": [{ "Label": "On Hold Time (Minutes)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "3e94b927-619d-4b64-853a-c4ec80b64bbb", "HasChanged": null }], "UserLocalizedLabel": { "Label": "On Hold Time (Minutes)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "3e94b927-619d-4b64-853a-c4ec80b64bbb", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address1_freighttermscode", "SchemaName": "Address1_FreightTermsCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "e7c8f2bf-c314-4d3d-bb8e-83726acf99e8", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Freight Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "67d6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Freight Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "67d6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "creditlimit", "SchemaName": "CreditLimit", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "a961ec67-dbad-4932-9b4a-62931d394485", "DisplayName": { "LocalizedLabels": [{ "Label": "Credit Limit", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b0cde1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Credit Limit", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b0cde1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "originatingleadidname", "SchemaName": "OriginatingLeadIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "originatingleadid", "MetadataId": "6ef4dd95-df51-4b0e-b52b-0ee699025d3e", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "parentaccountidname", "SchemaName": "ParentAccountIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "parentaccountid", "MetadataId": "a3e8b064-8cc2-470e-97f7-1322ba69b23d", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "accountratingcode", "SchemaName": "AccountRatingCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "28ef681e-b91f-4988-9647-10eea2f33bd0", "DisplayName": { "LocalizedLabels": [{ "Label": "Account Rating", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "444901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Account Rating", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "444901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "address1_utcoffset", "SchemaName": "Address1_UTCOffset", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "168ea93d-ad1b-453c-9f57-646a947c9ccd", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: UTC Offset", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0c40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: UTC Offset", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0c40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "preferredappointmenttimecode", "SchemaName": "PreferredAppointmentTimeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "80ed630f-d6f9-4fa4-96b1-e1b17522015d", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred Time", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a5abc7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred Time", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a5abc7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "donotsendmarketingmaterialname", "SchemaName": "DoNotSendMarketingMaterialName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotsendmm", "MetadataId": "6b8aaf94-a450-4319-abf7-296a8791c0bf", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "numberofemployees", "SchemaName": "NumberOfEmployees", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b2820e7c-a271-4298-8c65-7c9593240ea2", "DisplayName": { "LocalizedLabels": [{ "Label": "Number of Employees", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "181ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Number of Employees", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "181ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedbyexternalpartyname", "SchemaName": "ModifiedByExternalPartyName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedbyexternalparty", "MetadataId": "30c84691-43fb-4e9b-a8a9-5ed8fe8e86f5", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "statecodename", "SchemaName": "StateCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "statecode", "MetadataId": "d5ef8b43-fc5e-48dd-8bff-708a30c1576a", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "accountclassificationcode", "SchemaName": "AccountClassificationCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "1344497c-e863-48d4-ab7c-2c068aacd5c6", "DisplayName": { "LocalizedLabels": [{ "Label": "Classification", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0f92aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Classification", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0f92aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "revenue", "SchemaName": "Revenue", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9485cdfc-ad92-4758-b61d-f3705c82a85e", "DisplayName": { "LocalizedLabels": [{ "Label": "Annual Revenue", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ded7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Annual Revenue", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ded7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "customertypecode", "SchemaName": "CustomerTypeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "4e33af09-ba43-4365-a747-c7e4f9992172", "DisplayName": { "LocalizedLabels": [{ "Label": "Relationship Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6954c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Relationship Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6954c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "donotbulkpostalmailname", "SchemaName": "DoNotBulkPostalMailName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotbulkpostalmail", "MetadataId": "e2e4b3c3-6016-459f-9d1f-b42ee454f0a9", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DecimalAttributeMetadata", "LogicalName": "exchangerate", "SchemaName": "ExchangeRate", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Decimal", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "5c346e62-9f48-4250-a58c-53a22200657f", "DisplayName": { "LocalizedLabels": [{ "Label": "Exchange Rate", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fc17d4a2-5617-4dc3-9bae-73aa237e799d", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Exchange Rate", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fc17d4a2-5617-4dc3-9bae-73aa237e799d", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_county", "SchemaName": "Address2_County", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9ffd362a-3bc1-4f40-ac9a-a14bb2e70504", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: County", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6691aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: County", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6691aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "isprivate", "SchemaName": "IsPrivate", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": false, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "c2e9efb0-6bea-4741-b7b9-94d5267743fb", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "primarycontactid", "SchemaName": "PrimaryContactId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "dcf69df9-5aa5-4ff0-8f7d-edbe5b7aea7c", "DisplayName": { "LocalizedLabels": [{ "Label": "Primary Contact", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b641b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Primary Contact", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b641b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "telephone3", "SchemaName": "Telephone3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "038bafa0-4d34-45b0-8fc5-85d7f147192e", "DisplayName": { "LocalizedLabels": [{ "Label": "Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e51ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e51ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "parentaccountid", "SchemaName": "ParentAccountId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "218eaefa-b657-4eee-933e-aa39fa8ae5c6", "DisplayName": { "LocalizedLabels": [{ "Label": "Parent Account", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f751c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Parent Account", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f751c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_city", "SchemaName": "Address2_City", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c1730fd8-059b-4804-b44e-1365fd5fe1a8", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: City", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6f9aba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: City", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6f9aba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StatusAttributeMetadata", "LogicalName": "statuscode", "SchemaName": "StatusCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Status", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "f99371c3-b1e1-4645-b2c3-c3db0f59ecf0", "DisplayName": { "LocalizedLabels": [{ "Label": "Status Reason", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d11c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Status Reason", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d11c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "address1_addresstypecodename", "SchemaName": "Address1_AddressTypeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address1_addresstypecode", "MetadataId": "ae7ac149-a80b-4aad-bd5c-fdbe4f255c85", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DoubleAttributeMetadata", "LogicalName": "address2_latitude", "SchemaName": "Address2_Latitude", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Double", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "526057cd-3db1-4be6-a7ee-85a6018ad6fb", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Latitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e8f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Latitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e8f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "createdon", "SchemaName": "CreatedOn", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "b952981e-515f-40ba-9a99-99ccf4a9666d", "DisplayName": { "LocalizedLabels": [{ "Label": "Created On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "bcaac7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Created On", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "bcaac7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotbulkemail", "SchemaName": "DoNotBulkEMail", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "d80bc199-9dd4-493a-9932-d1fab5590e1a", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Bulk Emails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c71ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Bulk Emails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c71ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotfax", "SchemaName": "DoNotFax", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "616c80e2-b5c6-4927-990a-0cb1b05b5eae", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Faxes", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d798ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Faxes", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d798ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "marketcap", "SchemaName": "MarketCap", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "7c4e2f3f-41ee-435a-ba53-bde48af703a2", "DisplayName": { "LocalizedLabels": [{ "Label": "Market Capitalization", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d741b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Market Capitalization", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "d741b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "openrevenue_base", "SchemaName": "OpenRevenue_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "9bf59f26-ec1b-4f91-a735-c4c4a6bab3f6", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Revenue (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "138d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Revenue (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "138d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MemoAttributeMetadata", "LogicalName": "address1_composite", "SchemaName": "Address1_Composite", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Memo", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "7ffa2f83-c47c-49da-81de-e41829c856ba", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f195532f-e18a-4a4e-a720-f341a54cba8a", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f195532f-e18a-4a4e-a720-f341a54cba8a", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "ownershipcode", "SchemaName": "OwnershipCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "7be79e9c-1a22-45b2-b09f-1e37cba95bfa", "DisplayName": { "LocalizedLabels": [{ "Label": "Ownership", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e840b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Ownership", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e840b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "opendeals_state", "SchemaName": "OpenDeals_State", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "5394b6f5-5f24-4939-b750-9002a68d1b1a", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Deals (State)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0e8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Deals (State)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0e8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null } } }, { "LogicalName": "statuscodename", "SchemaName": "StatusCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "statuscode", "MetadataId": "ee82e6f8-45f0-4420-8942-04e55174b3c7", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "owningbusinessunit", "SchemaName": "OwningBusinessUnit", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "80e6486e-17f9-4623-b179-6f86778663ce", "DisplayName": { "LocalizedLabels": [{ "Label": "Owning Business Unit", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ec63cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Owning Business Unit", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ec63cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "preferredappointmenttimecodename", "SchemaName": "PreferredAppointmentTimeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredappointmenttimecode", "MetadataId": "8d3209c0-a0ba-429c-b96e-d9295f74aff9", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_postalcode", "SchemaName": "Address2_PostalCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9df02683-1835-4c45-9840-945d40758b1d", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: ZIP\/Postal Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c8d6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: ZIP\/Postal Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c8d6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "lastusedincampaign", "SchemaName": "LastUsedInCampaign", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "bc247de2-6d37-4ea1-9db8-3de2beef935c", "DisplayName": { "LocalizedLabels": [{ "Label": "Last Date Included in Campaign", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "649af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Last Date Included in Campaign", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "649af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "paymenttermscodename", "SchemaName": "PaymentTermsCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "paymenttermscode", "MetadataId": "31588d1c-b4c2-4414-ba65-abc038c71c4c", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "industrycodename", "SchemaName": "IndustryCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "industrycode", "MetadataId": "15750b8c-52eb-48df-843f-dc1710d994cd", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "processid", "SchemaName": "ProcessId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "bac14cb9-202f-4037-82f3-5b0a570b40ed", "DisplayName": { "LocalizedLabels": [{ "Label": "Process", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c76b75b9-274a-4f7a-b093-38d5322ef82a", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Process", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c76b75b9-274a-4f7a-b093-38d5322ef82a", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "owneridyominame", "SchemaName": "OwnerIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "ownerid", "MetadataId": "1e5bcca6-1ebd-4e6d-9fd2-c837d17d5eb7", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "entityimage_url", "SchemaName": "EntityImage_URL", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "entityimageid", "MetadataId": "e8f8979f-d83a-420a-918a-b2a2f28f09bf", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "teamsfollowed", "SchemaName": "TeamsFollowed", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "8b937ebc-615e-48c1-b057-df9e63567dd1", "DisplayName": { "LocalizedLabels": [{ "Label": "TeamsFollowed", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "aef266fa-06ee-4e80-94be-8d7ca01229be", "HasChanged": null }], "UserLocalizedLabel": { "Label": "TeamsFollowed", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "aef266fa-06ee-4e80-94be-8d7ca01229be", "HasChanged": null } } }, { "LogicalName": "address2_shippingmethodcodename", "SchemaName": "Address2_ShippingMethodCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address2_shippingmethodcode", "MetadataId": "2130e3c1-c554-4b10-a287-8e31951dc4d6", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_line3", "SchemaName": "Address2_Line3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ba99202d-aaad-4e62-af78-9695b7c8b5ca", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Street 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "33e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Street 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "33e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MemoAttributeMetadata", "LogicalName": "description", "SchemaName": "Description", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Memo", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c6000ee7-3aa3-4bfc-afc2-0cff33de5a03", "DisplayName": { "LocalizedLabels": [{ "Label": "Description", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ebcee1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Description", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ebcee1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "modifiedby", "SchemaName": "ModifiedBy", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "2e19a39f-63d9-4fb1-9353-b725eb311de0", "DisplayName": { "LocalizedLabels": [{ "Label": "Modified By", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4e53c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Modified By", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4e53c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "timezoneruleversionnumber", "SchemaName": "TimeZoneRuleVersionNumber", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "2aabdd56-34c3-4664-bc23-3d538f4c2b2f", "DisplayName": { "LocalizedLabels": [{ "Label": "Time Zone Rule Version Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2fcbaed5-b6ad-4579-aa36-836311d4ad99", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Time Zone Rule Version Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2fcbaed5-b6ad-4579-aa36-836311d4ad99", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_county", "SchemaName": "Address1_County", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "13874392-d3f9-4021-93db-7bb2b048a404", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: County", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "da1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: County", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "da1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdbyname", "SchemaName": "CreatedByName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdby", "MetadataId": "2b80d9de-77b0-4ba5-9d47-f6adb778a61e", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "shippingmethodcodename", "SchemaName": "ShippingMethodCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "shippingmethodcode", "MetadataId": "6e3901fa-8d93-4b28-8997-eace7d5a81e8", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "preferredcontactmethodcode", "SchemaName": "PreferredContactMethodCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "cc5719c0-4fcd-44d3-b1ff-ad77073344e2", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred Method of Contact", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7753c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred Method of Contact", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7753c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "modifiedonbehalfby", "SchemaName": "ModifiedOnBehalfBy", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "e9b339b9-b07c-44fb-b53d-795721d2f520", "DisplayName": { "LocalizedLabels": [{ "Label": "Modified By (Delegate)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e859a486-70dd-4585-aaa9-3de2774a4537", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Modified By (Delegate)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e859a486-70dd-4585-aaa9-3de2774a4537", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_line1", "SchemaName": "Address1_Line1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "7b3459e2-4b97-44b9-9cb7-6248689dd151", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Street 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c5e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Street 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c5e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotemail", "SchemaName": "DoNotEMail", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "e4c0ddc5-d87e-438d-8c97-927ddae50adf", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Emails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "cb40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Emails", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "cb40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "territorycode", "SchemaName": "TerritoryCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "204767ee-9219-458d-a78e-c0295e724fab", "DisplayName": { "LocalizedLabels": [{ "Label": "Territory Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9125e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Territory Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9125e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "donotphonename", "SchemaName": "DoNotPhoneName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotphone", "MetadataId": "ca244852-c3b8-4fea-ae31-68317fa11bf8", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_postofficebox", "SchemaName": "Address2_PostOfficeBox", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "64b24860-5c1b-46a2-96a5-299ef09a870d", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Post Office Box", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2ecfe1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Post Office Box", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2ecfe1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_telephone1", "SchemaName": "Address2_Telephone1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "46c47251-be48-4e66-96da-7019322003ad", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Telephone 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "dc90aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Telephone 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "dc90aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_telephone2", "SchemaName": "Address2_Telephone2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "626eb7d3-333e-439d-adca-cc7e8d253afc", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Telephone 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "85f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Telephone 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "85f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_telephone3", "SchemaName": "Address2_Telephone3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "80f36ff1-22b5-43e5-ac4f-7cbf40a3f1f6", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4c53c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4c53c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "originatingleadidyominame", "SchemaName": "OriginatingLeadIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "originatingleadid", "MetadataId": "1ecea20b-9bb7-4895-9e9a-34a4a4f240be", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "preferredequipmentidname", "SchemaName": "PreferredEquipmentIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredequipmentid", "MetadataId": "42418791-c37e-4e61-98c3-8d583d1fb3de", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "address1_addressid", "SchemaName": "Address1_AddressId", "IsPrimaryId": true, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "330e9d6e-2ca2-4694-a892-3fbb53d656fd", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1052c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1052c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "traversedpath", "SchemaName": "TraversedPath", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b5922123-0ba7-45f6-98d4-ba666a45e3c4", "DisplayName": { "LocalizedLabels": [{ "Label": "(Deprecated) Traversed Path", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "33457f57-609d-4cfd-9738-e9606852c4fb", "HasChanged": null }], "UserLocalizedLabel": { "Label": "(Deprecated) Traversed Path", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "33457f57-609d-4cfd-9738-e9606852c4fb", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "territoryidname", "SchemaName": "TerritoryIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "territoryid", "MetadataId": "9cc42b72-6df7-4b91-b5d8-273a870f8bb3", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "territorycodename", "SchemaName": "TerritoryCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "territorycode", "MetadataId": "c9d08ebd-9205-48fb-93e2-fd95b5718d4c", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "followemailname", "SchemaName": "FollowEmailName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "followemail", "MetadataId": "29d77334-70c4-47d8-bacf-b733911a6fe2", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_telephone2", "SchemaName": "Address1_Telephone2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "dc212cad-707c-42ef-b2b6-5b5e5bd10065", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Telephone 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "37e8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Telephone 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "37e8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdonbehalfbyname", "SchemaName": "CreatedOnBehalfByName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdonbehalfby", "MetadataId": "714467af-a2fe-456c-9951-b88dcc92ed2e", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "owninguser", "SchemaName": "OwningUser", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "510089a8-713a-4d49-a993-6af37d5641d0", "DisplayName": { "LocalizedLabels": [{ "Label": "Owning User", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "abdb0c5b-0863-4c29-be96-45b4ee4f8bcf", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Owning User", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "abdb0c5b-0863-4c29-be96-45b4ee4f8bcf", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "industrycode", "SchemaName": "IndustryCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ae00233e-70c0-4a1f-803f-03ff723e5440", "DisplayName": { "LocalizedLabels": [{ "Label": "Industry", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6498ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Industry", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6498ba00-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_name", "SchemaName": "Address2_Name", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "6688b5e5-126a-4b64-a6ce-dbbca074bd89", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0992aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0992aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "openrevenue_state", "SchemaName": "OpenRevenue_State", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "6787750d-7f5b-4ab8-bddc-c48edda0fca2", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Revenue (State)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1b8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Revenue (State)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1b8d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "primarysatoriid", "SchemaName": "PrimarySatoriId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "974ecfad-669a-422d-a081-d222d604353f", "DisplayName": { "LocalizedLabels": [{ "Label": "Primary Satori ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "23f2a113-7beb-4754-bb44-0f7566adbbbf", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Primary Satori ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "23f2a113-7beb-4754-bb44-0f7566adbbbf", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "name", "SchemaName": "Name", "IsPrimaryId": false, "IsPrimaryName": true, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "a1965545-44bc-4b7b-b1ae-93074d0e3f2a", "DisplayName": { "LocalizedLabels": [{ "Label": "Account Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "58f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Account Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "58f1fbc4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "entityimageid", "SchemaName": "EntityImageId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "ddf6ebc7-8159-4f16-bf87-4523af5f2264", "DisplayName": { "LocalizedLabels": [{ "Label": "Entity Image Id", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "127b152b-4a4c-4148-8242-da7ec58ec346", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Entity Image Id", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "127b152b-4a4c-4148-8242-da7ec58ec346", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging60", "SchemaName": "Aging60", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "002902f9-14b4-4825-bcbe-ba7a2f9500fd", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 60", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8491aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 60", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8491aa12-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "timespentbymeonemailandmeetings", "SchemaName": "TimeSpentByMeOnEmailAndMeetings", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "2b8f1a55-04f9-468f-b431-bdc0e59e6019", "DisplayName": { "LocalizedLabels": [{ "Label": "Time Spent by me", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6c72169b-6f22-45c5-849c-d98629a3bb0c", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Time Spent by me", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "6c72169b-6f22-45c5-849c-d98629a3bb0c", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "businesstypecode", "SchemaName": "BusinessTypeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "088101ce-83c4-40cd-9b8b-97bdb52bdcfa", "DisplayName": { "LocalizedLabels": [{ "Label": "Business Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "79e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Business Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "79e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "primarytwitterid", "SchemaName": "PrimaryTwitterId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "14ad1176-d742-47bf-836a-6567170a1405", "DisplayName": { "LocalizedLabels": [{ "Label": "Primary Twitter ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a5bd4993-c40b-4ab3-be39-2c248c11ccb5", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Primary Twitter ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a5bd4993-c40b-4ab3-be39-2c248c11ccb5", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "owneridname", "SchemaName": "OwnerIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "ownerid", "MetadataId": "0375b41e-124c-4efd-9c52-fbafc69e07b0", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.ImageAttributeMetadata", "LogicalName": "entityimage", "SchemaName": "EntityImage", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": "entityimageid", "MetadataId": "4fabce42-db27-4076-ba0b-2538c71b8a74", "DisplayName": { "LocalizedLabels": [{ "Label": "Default Image", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84ee563d-1094-4445-b96e-d6d291e8e2e8", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Default Image", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84ee563d-1094-4445-b96e-d6d291e8e2e8", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BigIntAttributeMetadata", "LogicalName": "entityimage_timestamp", "SchemaName": "EntityImage_Timestamp", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "BigInt", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "entityimageid", "MetadataId": "6a6170af-5a93-4396-9283-4a02c95bce3d", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdonbehalfbyyominame", "SchemaName": "CreatedOnBehalfByYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdonbehalfby", "MetadataId": "71efbac2-84a2-4301-a5a9-b40a08ebba30", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MemoAttributeMetadata", "LogicalName": "address2_composite", "SchemaName": "Address2_Composite", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Memo", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "05dda970-1693-42e1-9037-68fef8cedf5c", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "69a77bc9-d34c-4d81-8bef-8a7290470eaa", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "69a77bc9-d34c-4d81-8bef-8a7290470eaa", "HasChanged": null } } }, { "LogicalName": "accountratingcodename", "SchemaName": "AccountRatingCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "accountratingcode", "MetadataId": "7bd106f2-53d5-466e-a521-9f29737afb82", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "shippingmethodcode", "SchemaName": "ShippingMethodCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "cf1bf1d3-9c27-4f72-af83-7f96f56ecd14", "DisplayName": { "LocalizedLabels": [{ "Label": "Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e599f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e599f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_country", "SchemaName": "Address1_Country", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "1326c13d-8797-4905-9540-47fa9ae8ef57", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Country\/Region", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f026e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Country\/Region", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f026e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "customertypecodename", "SchemaName": "CustomerTypeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "customertypecode", "MetadataId": "93348ddc-b15e-4b89-9486-2064f3270693", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "owningteam", "SchemaName": "OwningTeam", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "aadfb126-cadd-4195-ada8-e739a404ba7e", "DisplayName": { "LocalizedLabels": [{ "Label": "Owning Team", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "25972789-f835-42fa-9222-40801fd112ce", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Owning Team", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "25972789-f835-42fa-9222-40801fd112ce", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_stateorprovince", "SchemaName": "Address1_StateOrProvince", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "8857cdf3-2e77-4c95-aae3-d08107779f21", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: State\/Province", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b241b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: State\/Province", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b241b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "isprivatename", "SchemaName": "IsPrivateName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "isprivate", "MetadataId": "31aa40c1-13a8-4e05-aad6-52b69a67ee43", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "preferredserviceidname", "SchemaName": "PreferredServiceIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "preferredserviceid", "MetadataId": "cd85ab19-eba2-4d3c-8030-cda5f4fe364c", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "marketingonly", "SchemaName": "MarketingOnly", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c88f7cd9-19be-48c7-8a33-8473d070297a", "DisplayName": { "LocalizedLabels": [{ "Label": "Marketing Only", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fc98ffdc-17ed-45dd-a3a0-ee59dd6d89d9", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Marketing Only", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fc98ffdc-17ed-45dd-a3a0-ee59dd6d89d9", "HasChanged": null } } }, { "LogicalName": "creditonholdname", "SchemaName": "CreditOnHoldName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "creditonhold", "MetadataId": "33505b21-2a74-47b1-91f0-a52aeab80c78", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedonbehalfbyname", "SchemaName": "ModifiedOnBehalfByName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedonbehalfby", "MetadataId": "44d88398-4929-4bbf-9616-ea3014f585d8", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "preferredequipmentid", "SchemaName": "PreferredEquipmentId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "d5f8e679-3885-41ce-b945-65c5b621efbc", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred Facility\/Equipment", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5afe2680-606e-4811-9882-932148d17b38", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred Facility\/Equipment", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5afe2680-606e-4811-9882-932148d17b38", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdbyexternalpartyyominame", "SchemaName": "CreatedByExternalPartyYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdbyexternalparty", "MetadataId": "12f3c6f1-477e-4cc1-add2-4538f08cfac6", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "address1_freighttermscodename", "SchemaName": "Address1_FreightTermsCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address1_freighttermscode", "MetadataId": "7cd017f5-ca70-4b11-b6eb-c3d89c61a689", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "createdonbehalfby", "SchemaName": "CreatedOnBehalfBy", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "90aa9edb-4009-48f9-9b21-2675a055c3fc", "DisplayName": { "LocalizedLabels": [{ "Label": "Created By (Delegate)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9e465c90-fa69-426a-b448-5547a32124e1", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Created By (Delegate)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9e465c90-fa69-426a-b448-5547a32124e1", "HasChanged": null } } }, { "LogicalName": "marketingonlyname", "SchemaName": "MarketingOnlyName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "marketingonly", "MetadataId": "f1cdde41-5701-4970-92a0-14ffaa8438ac", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_line1", "SchemaName": "Address2_Line1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9493ed2f-b55d-46ac-8dc5-8b1b7192cbba", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Street 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8e26e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Street 1", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8e26e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_telephone1", "SchemaName": "Address1_Telephone1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b9dc178d-394b-439e-90f2-17b84a279357", "DisplayName": { "LocalizedLabels": [{ "Label": "Address Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "29abc7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "29abc7f4-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "primarycontactidname", "SchemaName": "PrimaryContactIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "primarycontactid", "MetadataId": "ab294895-72ed-4f18-854d-0aaf8d7a8b7d", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_telephone3", "SchemaName": "Address1_Telephone3", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "96278824-686d-4602-a592-943cdb667bea", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b053c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Telephone 3", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b053c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_postofficebox", "SchemaName": "Address1_PostOfficeBox", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "a95a22b3-2197-4dfd-bdaf-d89125162dc3", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Post Office Box", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "50e0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Post Office Box", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "50e0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "followemail", "SchemaName": "FollowEmail", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "401eed95-62b1-4dd4-8ca2-c5a2bee16481", "DisplayName": { "LocalizedLabels": [{ "Label": "Follow Email Activity", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a02f7882-abd3-4b61-945d-1f24ffab2e5d", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Follow Email Activity", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "a02f7882-abd3-4b61-945d-1f24ffab2e5d", "HasChanged": null } } }, { "LogicalName": "donotemailname", "SchemaName": "DoNotEMailName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotemail", "MetadataId": "490f2da2-242d-45c9-95bc-9cfc23564567", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "slainvokedidname", "SchemaName": "SLAInvokedIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "slainvokedid", "MetadataId": "6499c30b-9a7f-49af-a169-8183cef8f73f", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "fax", "SchemaName": "Fax", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9811cb32-482f-4dd3-9b5d-5340236dcd61", "DisplayName": { "LocalizedLabels": [{ "Label": "Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "301c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "301c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "masterid", "SchemaName": "MasterId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "7af8cc57-303f-4c0c-92d6-53c278e067a0", "DisplayName": { "LocalizedLabels": [{ "Label": "Master ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1c1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Master ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1c1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "sic", "SchemaName": "SIC", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "1534a09c-3313-4189-8fec-a132d69f9a0d", "DisplayName": { "LocalizedLabels": [{ "Label": "SIC Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1f1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "SIC Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1f1c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "ownerid", "SchemaName": "OwnerId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Owner", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "3343d9f8-8b3b-45de-881f-4501a34e29de", "DisplayName": { "LocalizedLabels": [{ "Label": "Owner", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4a4901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Owner", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4a4901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "address2_utcoffset", "SchemaName": "Address2_UTCOffset", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ca119f3b-e098-49c3-9355-891eb5c1785f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: UTC Offset", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8353c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: UTC Offset", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "8353c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "stageid", "SchemaName": "StageId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "3c69a2f7-b6c5-47ba-9966-b04a4693bcfc", "DisplayName": { "LocalizedLabels": [{ "Label": "(Deprecated) Process Stage", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ac13ae4b-3820-4276-8e8f-28af41ef2158", "HasChanged": null }], "UserLocalizedLabel": { "Label": "(Deprecated) Process Stage", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ac13ae4b-3820-4276-8e8f-28af41ef2158", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "accountnumber", "SchemaName": "AccountNumber", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "7c21feaa-f59c-422d-858d-6d630d23446c", "DisplayName": { "LocalizedLabels": [{ "Label": "Account Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "609af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Account Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "609af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "creditlimit_base", "SchemaName": "CreditLimit_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "0e844ab4-638f-41a6-b17b-ce948b5129f5", "DisplayName": { "LocalizedLabels": [{ "Label": "Credit Limit (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "93efad2e-9ed7-454d-87bb-01afb2a1def6", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Credit Limit (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "93efad2e-9ed7-454d-87bb-01afb2a1def6", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_fax", "SchemaName": "Address2_Fax", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ee64e0d6-7c95-4cd4-bda7-05386f47cf7f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "86d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "86d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "revenue_base", "SchemaName": "Revenue_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "74177cf1-9a05-4c38-9e82-396f3199bac2", "DisplayName": { "LocalizedLabels": [{ "Label": "Annual Revenue (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "65ab2173-0c8c-4800-be47-93ecdfb18c01", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Annual Revenue (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "65ab2173-0c8c-4800-be47-93ecdfb18c01", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "merged", "SchemaName": "Merged", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "2e0892db-cc6e-4688-994e-a0a06ba319df", "DisplayName": { "LocalizedLabels": [{ "Label": "Merged", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4d1ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Merged", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4d1ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.EntityNameAttributeMetadata", "LogicalName": "owneridtype", "SchemaName": "OwnerIdType", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "EntityName", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": "ownerid", "MetadataId": "95e946b0-c222-48eb-916f-0e98b446747c", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DoubleAttributeMetadata", "LogicalName": "address2_longitude", "SchemaName": "Address2_Longitude", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Double", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "1420757b-5096-4d35-b490-daf9797d65eb", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Longitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "799af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Longitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "799af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "modifiedbyexternalparty", "SchemaName": "ModifiedByExternalParty", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "f8e8ceaf-a9e3-4108-9942-5d382f564f97", "DisplayName": { "LocalizedLabels": [{ "Label": "Modified By (External Party)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7a03aad7-6c69-47f8-8c71-0a8d97303e9a", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Modified By (External Party)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "7a03aad7-6c69-47f8-8c71-0a8d97303e9a", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "defaultpricelevelid", "SchemaName": "DefaultPriceLevelId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "dde3fc28-c8f5-41df-b0bd-004ce1cc353a", "DisplayName": { "LocalizedLabels": [{ "Label": "Price List", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e9522aa2-e7c0-4c9f-936b-b9daf8e2cded", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Price List", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e9522aa2-e7c0-4c9f-936b-b9daf8e2cded", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "ftpsiteurl", "SchemaName": "FtpSiteURL", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "22ada637-2f87-4ed4-8766-eade94f3b668", "DisplayName": { "LocalizedLabels": [{ "Label": "FTP Site", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "10d9dee2-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "FTP Site", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "10d9dee2-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "donotpostalmailname", "SchemaName": "DoNotPostalMailName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotpostalmail", "MetadataId": "03f84fdc-836b-4cc5-bfd6-fbb75c81ecaf", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging90_base", "SchemaName": "Aging90_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "d2f94d60-6641-49dd-a76d-bfc8a234ac24", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 90 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f72d56f7-1182-4fda-9808-43625378abd9", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 90 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f72d56f7-1182-4fda-9808-43625378abd9", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "donotphone", "SchemaName": "DoNotPhone", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "a4561f83-3630-4f3c-9a36-1cdfff96a97a", "DisplayName": { "LocalizedLabels": [{ "Label": "Do not allow Phone Calls", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9ae9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Do not allow Phone Calls", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "9ae9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "address1_shippingmethodcodename", "SchemaName": "Address1_ShippingMethodCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address1_shippingmethodcode", "MetadataId": "be8db669-4365-4721-a050-900f599023cb", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_primarycontactname", "SchemaName": "Address1_PrimaryContactName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "bbaa86d0-ba0f-4c0d-93ed-670e49628e75", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Primary Contact Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "df99f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Primary Contact Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "df99f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedbyyominame", "SchemaName": "ModifiedByYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedby", "MetadataId": "8b16e0ff-53e1-4371-86c1-65a25e3ba7c5", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "lastonholdtime", "SchemaName": "LastOnHoldTime", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "d8841e6e-5099-4320-aa8b-682e329702c4", "DisplayName": { "LocalizedLabels": [{ "Label": "Last On Hold Time", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "66634992-89d9-4da8-8e22-c1ec85dd4a72", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Last On Hold Time", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "66634992-89d9-4da8-8e22-c1ec85dd4a72", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_line2", "SchemaName": "Address1_Line2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "69e4d8a3-cbdf-4e4a-8521-c7d3d6deb53f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Street 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4341b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Street 2", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "4341b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedonbehalfbyyominame", "SchemaName": "ModifiedOnBehalfByYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedonbehalfby", "MetadataId": "04a08ad9-eb9e-4ae2-8b1e-2a65199e143f", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "createdby", "SchemaName": "CreatedBy", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "b863fe8a-6393-42ec-a540-972d3b45bd7b", "DisplayName": { "LocalizedLabels": [{ "Label": "Created By", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c099f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Created By", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "c099f6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address2_addresstypecode", "SchemaName": "Address2_AddressTypeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "e0007867-4731-4d30-8efe-dea46640c1bb", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Address Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "26e0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Address Type", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "26e0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", "LogicalName": "openrevenue_date", "SchemaName": "OpenRevenue_Date", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "DateTime", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "53475a30-98e5-453a-af44-b0c00b88e17d", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Revenue (Last Updated On)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "178d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Revenue (Last Updated On)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "178d9876-f712-ec11-b6e5-0022489c25ba", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_upszone", "SchemaName": "Address2_UPSZone", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "89d2579d-a4ec-4344-a791-13b10a87517f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: UPS Zone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "504901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: UPS Zone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "504901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "donotfaxname", "SchemaName": "DoNotFaxName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotfax", "MetadataId": "b69dbac9-d722-4314-9a53-99363390c1d9", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "marketcap_base", "SchemaName": "MarketCap_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "92721ea9-a118-44f6-87ed-de5a501fc8a9", "DisplayName": { "LocalizedLabels": [{ "Label": "Market Capitalization (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "eb1613b8-ec25-4557-b62c-b375b3841066", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Market Capitalization (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "eb1613b8-ec25-4557-b62c-b375b3841066", "HasChanged": null } } }, { "LogicalName": "address2_addresstypecodename", "SchemaName": "Address2_AddressTypeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "address2_addresstypecode", "MetadataId": "56f2a829-2711-4b43-ba20-a378e8ea97e0", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "ownershipcodename", "SchemaName": "OwnershipCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "ownershipcode", "MetadataId": "047756df-f439-4c61-8f90-2a8db1795b05", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_postalcode", "SchemaName": "Address1_PostalCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9f4f6b3f-ecbb-4f82-9efa-4f02ded49686", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: ZIP\/Postal Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1c1ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: ZIP\/Postal Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1c1ed7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "tickersymbol", "SchemaName": "TickerSymbol", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b0448516-5677-4b9f-945d-36017bbffd97", "DisplayName": { "LocalizedLabels": [{ "Label": "Ticker Symbol", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e0cde1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Ticker Symbol", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "e0cde1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "customersizecode", "SchemaName": "CustomerSizeCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "9c6b1499-24b3-4f63-a8c2-4b263ae49ac9", "DisplayName": { "LocalizedLabels": [{ "Label": "Customer Size", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "83dfeed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Customer Size", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "83dfeed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "utcconversiontimezonecode", "SchemaName": "UTCConversionTimeZoneCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "e914126d-4c9e-41ab-89a2-4f7d758f4016", "DisplayName": { "LocalizedLabels": [{ "Label": "UTC Conversion Time Zone Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fb51f00b-de40-492c-8afb-a9ebb000a814", "HasChanged": null }], "UserLocalizedLabel": { "Label": "UTC Conversion Time Zone Code", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fb51f00b-de40-492c-8afb-a9ebb000a814", "HasChanged": null } } }, { "LogicalName": "donotbulkemailname", "SchemaName": "DoNotBulkEMailName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "donotbulkemail", "MetadataId": "713cf6a1-750b-4cb4-a892-e52a0b206de8", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "defaultpricelevelidname", "SchemaName": "DefaultPriceLevelIdName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "defaultpricelevelid", "MetadataId": "b086279a-a937-41f0-8703-71d87c5a45da", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", "LogicalName": "participatesinworkflow", "SchemaName": "ParticipatesInWorkflow", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Boolean", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "b7a4c83e-1ff9-403b-aabb-bc50d608d4da", "DisplayName": { "LocalizedLabels": [{ "Label": "Participates in Workflow", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Participates in Workflow", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "84e9af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "stockexchange", "SchemaName": "StockExchange", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "0b24a82f-e3aa-4a51-bc98-da99c732a313", "DisplayName": { "LocalizedLabels": [{ "Label": "Stock Exchange", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fe63cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Stock Exchange", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fe63cfee-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "customersizecodename", "SchemaName": "CustomerSizeCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "customersizecode", "MetadataId": "cd5073c6-1b65-42ad-8c4a-9582ad7119db", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "importsequencenumber", "SchemaName": "ImportSequenceNumber", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "6aef0e41-4d16-48ca-aac3-354233738b5d", "DisplayName": { "LocalizedLabels": [{ "Label": "Import Sequence Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "27b4904e-3a65-4155-b56c-d84faae22513", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Import Sequence Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "27b4904e-3a65-4155-b56c-d84faae22513", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "telephone2", "SchemaName": "Telephone2", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c370ed23-eb71-4c25-b8ed-9a469f6f99b4", "DisplayName": { "LocalizedLabels": [{ "Label": "Other Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0553c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Other Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0553c2fa-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "mergedname", "SchemaName": "MergedName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "merged", "MetadataId": "99879032-92ce-4188-b303-c9eca16994c3", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.BigIntAttributeMetadata", "LogicalName": "versionnumber", "SchemaName": "VersionNumber", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "BigInt", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "60362493-831c-4ed6-a82a-e51f3ce1e670", "DisplayName": { "LocalizedLabels": [{ "Label": "Version Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b71f65b8-f9ed-45db-bccd-e1dd85cf5971", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Version Number", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "b71f65b8-f9ed-45db-bccd-e1dd85cf5971", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", "LogicalName": "preferredsystemuserid", "SchemaName": "PreferredSystemUserId", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Lookup", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ea8697f0-8274-4b49-a6a4-dba3f48b3679", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred User", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "021c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred User", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "021c9b1e-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "accountid", "SchemaName": "AccountId", "IsPrimaryId": true, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "f8cd5db9-cee8-4845-8cdd-cd4f504957e7", "DisplayName": { "LocalizedLabels": [{ "Label": "Account", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5cd8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Account", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "5cd8a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "telephone1", "SchemaName": "Telephone1", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "4f8dae72-5905-4130-987a-6fc85e450466", "DisplayName": { "LocalizedLabels": [{ "Label": "Main Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1be0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Main Phone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1be0eed0-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", "LogicalName": "aging30_base", "SchemaName": "Aging30_Base", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Money", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "80934a27-2d97-4104-8663-29afa4532cad", "DisplayName": { "LocalizedLabels": [{ "Label": "Aging 30 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "76fd225d-95fb-4279-99fc-a0827c82c7ed", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Aging 30 (Base)", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "76fd225d-95fb-4279-99fc-a0827c82c7ed", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_name", "SchemaName": "Address1_Name", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "c1f41980-4d65-4150-8a28-38f0f4117f4d", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0c1fd7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "0c1fd7e8-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_fax", "SchemaName": "Address1_Fax", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "4d8847bf-14f9-4a42-91e4-22dca4efa448", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "99e8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Fax", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "99e8af0c-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.DoubleAttributeMetadata", "LogicalName": "address1_latitude", "SchemaName": "Address1_Latitude", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Double", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "a153ec66-4ddd-4a74-bd1e-40119efdd781", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: Latitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fa40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: Latitude", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "fa40b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address2_shippingmethodcode", "SchemaName": "Address2_ShippingMethodCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "042dbe8b-f24d-450e-8b36-d75421012a3f", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "81cee1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Shipping Method", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "81cee1dc-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "primarycontactidyominame", "SchemaName": "PrimaryContactIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "primarycontactid", "MetadataId": "70eaa97b-6ab9-40b8-b736-e91fa3ec05ef", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "LogicalName": "accountclassificationcodename", "SchemaName": "AccountClassificationCodeName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Virtual", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "accountclassificationcode", "MetadataId": "33ec532a-887e-4f83-8e89-83d646167dba", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "preferredappointmentdaycode", "SchemaName": "PreferredAppointmentDayCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "5967e7cc-afbb-4c10-bf7e-e7ef430c52be", "DisplayName": { "LocalizedLabels": [{ "Label": "Preferred Day", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1ed6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Preferred Day", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1ed6a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "modifiedbyname", "SchemaName": "ModifiedByName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "modifiedby", "MetadataId": "dc200f64-cf5e-4a58-a51f-a512dcc993a1", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "createdbyyominame", "SchemaName": "CreatedByYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "createdby", "MetadataId": "0df21d8f-9405-4c96-9cc7-6f15db11ae0a", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", "LogicalName": "address2_freighttermscode", "SchemaName": "Address2_FreightTermsCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Picklist", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "d4bde505-3332-439a-9cff-98074e8dd32e", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Freight Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "61d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Freight Terms", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "61d7a218-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address1_upszone", "SchemaName": "Address1_UPSZone", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "884421e3-3da2-4f94-8e8a-d8a209ce3d69", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 1: UPS Zone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ca4901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 1: UPS Zone", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "ca4901bf-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "LogicalName": "address2_addressid", "SchemaName": "Address2_AddressId", "IsPrimaryId": true, "IsPrimaryName": false, "AttributeType": "Uniqueidentifier", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "4e6b416b-cbce-4524-b194-bf8b3ed46b3e", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f825e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: ID", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "f825e7d6-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "slaname", "SchemaName": "SLAName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "slaid", "MetadataId": "5c0f7ba6-40ca-4cc8-8e17-6beece2dbaf1", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "parentaccountidyominame", "SchemaName": "ParentAccountIdYomiName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": "parentaccountid", "MetadataId": "a2ec861a-ee3f-4a3e-bdac-0e57a1775b4e", "DisplayName": { "LocalizedLabels": [], "UserLocalizedLabel": null } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", "LogicalName": "address2_primarycontactname", "SchemaName": "Address2_PrimaryContactName", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "String", "IsValidForRead": true, "IsValidForCreate": true, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "ab3b6f3b-f839-48df-9598-ae52652e4fd9", "DisplayName": { "LocalizedLabels": [{ "Label": "Address 2: Primary Contact Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1b9af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Address 2: Primary Contact Name", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1b9af6ca-2241-db11-898a-0007e9e17ebd", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", "LogicalName": "opendeals", "SchemaName": "OpenDeals", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "Integer", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": false, "AttributeOf": null, "MetadataId": "e10cdd44-5c7f-4ac8-a5d1-b2118926f2bd", "DisplayName": { "LocalizedLabels": [{ "Label": "Open Deals", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2061c3ec-b437-4789-a0a0-adb0fa72f505", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Open Deals", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "2061c3ec-b437-4789-a0a0-adb0fa72f505", "HasChanged": null } } }, { "@odata.type": "#Microsoft.Dynamics.CRM.StateAttributeMetadata", "LogicalName": "statecode", "SchemaName": "StateCode", "IsPrimaryId": false, "IsPrimaryName": false, "AttributeType": "State", "IsValidForRead": true, "IsValidForCreate": false, "IsValidForUpdate": true, "AttributeOf": null, "MetadataId": "27f3c67a-f274-4034-9f0f-5d708bcd78f7", "DisplayName": { "LocalizedLabels": [{ "Label": "Status", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1a41b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null }], "UserLocalizedLabel": { "Label": "Status", "LanguageCode": 1033, "IsManaged": true, "MetadataId": "1a41b506-2341-db11-898a-0007e9e17ebd", "HasChanged": null } } }]; + + var oneToMany_Account = []; + oneToMany_Account.push({ + SchemaName: "account_Team", + ReferencingEntity: "team", + ReferencedEntity: "account", + ReferencingAttribute: "teamid", + ReferencedAttribute: "accountid", + ReferencingEntityNavigationPropertyName: "team", + ReferencedEntityNavigationPropertyName: "account_Team", + }); + oneToMany_Account.push({ + SchemaName: "Team_account", + ReferencingEntity: "team", + ReferencedEntity: "account", + ReferencingAttribute: "teamid2", + ReferencedAttribute: "accountid", + ReferencingEntityNavigationPropertyName: "Team2", + ReferencedEntityNavigationPropertyName: "Team_account", + }); + + var columns_User = []; + columns_User.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "FirstName", + LogicalName: "firstname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 50, + DisplayName: { UserLocalizedLabel: { Label: "First Name" } }, + }); + columns_User.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "FullName", + LogicalName: "fullname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: true, + IsValidForRead: true, + IsValidForCreate: false, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Full Name" } }, + }); + columns_User.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "LastName", + LogicalName: "lastname", + AttributeType: "String", + IsPrimaryId: false, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 50, + DisplayName: { UserLocalizedLabel: { Label: "Last Name" } }, + }); + columns_User.push({ + SchemaName: "SystemUserId", + LogicalName: "systemuserid", + AttributeType: "Uniqueidentifier", + IsPrimaryId: true, + IsPrimaryName: false, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "User" } }, + }); + + var columns_CustomTable = []; + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.DecimalAttributeMetadata", + SchemaName: "sample_Decimal", + LogicalName: "sample_decimal", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Decimal", + MinValue: 700, + MaxValue: 800, + Precision: 2, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Decimal" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", + SchemaName: "sample_Money", + LogicalName: "sample_money", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Money", + MinValue: 0, + MaxValue: 1000, + Precision: 2, + PrecisionSource: 4, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Money" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", + SchemaName: "sample_Choice", + LogicalName: "sample_choice", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Picklist", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Choice" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.BigIntAttributeMetadata", + SchemaName: "VersionNumber", + LogicalName: "versionnumber", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "BigInt", + MinValue: -1000, + MaxValue: 1000, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Version Number" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StatusAttributeMetadata", + SchemaName: "statuscode", + LogicalName: "statuscode", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Status", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Status Reason" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.DateTimeAttributeMetadata", + SchemaName: "sample_DateAndTime", + LogicalName: "sample_dateandtime", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "DateTime", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Date And Time" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StateAttributeMetadata", + SchemaName: "statecode", + LogicalName: "statecode", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "State", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Status" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.IntegerAttributeMetadata", + SchemaName: "sample_WholeNumber", + LogicalName: "sample_wholenumber", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Integer", + MinValue: 20, + MaxValue: 40, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Whole Number" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.MoneyAttributeMetadata", + SchemaName: "sample_Money_Base", + LogicalName: "sample_money_base", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Money", + MinValue: 0, + MaxValue: 1000, + Precision: 2, + PrecisionSource: 4, + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Money (Base)" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "sample_Name", + LogicalName: "sample_name", + IsPrimaryId: false, + IsPrimaryName: true, + AttributeType: "String", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 90, + DisplayName: { UserLocalizedLabel: { Label: "Name" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "sample_Name2", + LogicalName: "sample_name2", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "String", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 91, + DisplayName: { UserLocalizedLabel: { Label: "Name 2" } }, + }); + columns_CustomTable.push({ + SchemaName: "sample_customtableId", + LogicalName: "sample_customtableid", + IsPrimaryId: true, + IsPrimaryName: false, + AttributeType: "Uniqueidentifier", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: false, + DisplayName: { UserLocalizedLabel: { Label: "Custom Table" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", + SchemaName: "sample_PolyId", + LogicalName: "sample_polyid", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Lookup", + Targets: ["contact", "team"], + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Polymorphic Lookup (Contact, Team)" } }, + }); + + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.EntityNameAttributeMetadata", + SchemaName: "sample_PolyIdType", + LogicalName: "sample_polyidtype", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "EntityName", + AttributeOf: "sample_polyid", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + }); + + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", + SchemaName: "OwnerId", + LogicalName: "ownerid", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Owner", + Targets: ["systemuser", "team"], + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Owner" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.MemoAttributeMetadata", + SchemaName: "sample_MultipleLines", + LogicalName: "sample_multiplelines", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Memo", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 500, + DisplayName: { UserLocalizedLabel: { Label: "Multiple Lines" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", + SchemaName: "sample_ContactId", + LogicalName: "sample_contactid", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Lookup", + Targets: ["contact"], + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Lookup (Contact)" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.LookupAttributeMetadata", + SchemaName: "sample_CustomerId", + LogicalName: "sample_customerid", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Customer", + Targets: ["account", "contact"], + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Customer Lookup" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.DoubleAttributeMetadata", + SchemaName: "sample_Float", + LogicalName: "sample_float", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Double", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MinValue: 5, + MaxValue: 10, + Precision: 3, + DisplayName: { UserLocalizedLabel: { Label: "Float" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.ImageAttributeMetadata", + SchemaName: "sample_Image", + LogicalName: "sample_image", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Virtual", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxSizeInKB: 10240, + CanStoreFullImage: true, + DisplayName: { UserLocalizedLabel: { Label: "Image" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.ImageAttributeMetadata", + SchemaName: "sample_Image2", + LogicalName: "sample_image2", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Virtual", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxSizeInKB: 1024, + CanStoreFullImage: false, + DisplayName: { UserLocalizedLabel: { Label: "Image 2" } }, + }); + + var sample_Boolean_Values = { OptionSetType: "Boolean", TrueOption: { Value: true, Label: { UserLocalizedLabel: { Label: "Yes" } } }, FalseOption: { Value: false, Label: { UserLocalizedLabel: { Label: "No" } } } }; + var sample_Boolean = { + "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", + EntityLogicalName: "sample_customtable", + LogicalName: "sample_boolean", + AttributeType: "Boolean", + OptionSet: sample_Boolean_Values, + }; + var columns_values_CustomTable = [sample_Boolean]; + + var sample_Choices_Values = { + OptionSetType: "MultiPicklist", + Options: [ + { Value: 1, Label: { UserLocalizedLabel: { Label: "Option 1" } } }, + { Value: 2, Label: { UserLocalizedLabel: { Label: "Option 2" } } }, + { Value: 3, Label: { UserLocalizedLabel: { Label: "Option 3" } } }, + ], + }; + var sample_Choices = { + "@odata.type": "#Microsoft.Dynamics.CRM.MultiSelectPicklistAttributeMetadata", + EntityLogicalName: "sample_customtable", + LogicalName: "sample_choices", + AttributeType: "MultiPicklist", + OptionSet: sample_Choices_Values, + }; + var columns_values_CustomTable1 = [sample_Choices]; + + var sample_Choice_Values = { + OptionSetType: "Picklist", + Options: [ + { Value: 0, Label: { UserLocalizedLabel: { Label: "A" } } }, + { Value: 727000001, Label: { UserLocalizedLabel: { Label: "B" } } }, + { Value: 727000002, Label: { UserLocalizedLabel: { Label: "C" } } }, + ], + }; + var sample_Choice = { + "@odata.type": "#Microsoft.Dynamics.CRM.PicklistAttributeMetadata", + EntityLogicalName: "sample_customtable", + LogicalName: "sample_choice", + AttributeType: "Picklist", + OptionSet: sample_Choice_Values, + }; + var columns_values_CustomTable2 = [sample_Choice]; + + var sample_State_Values = { + OptionSetType: "State", + Options: [ + { Value: 0, Label: { UserLocalizedLabel: { Label: "Active" } } }, + { Value: 1, Label: { UserLocalizedLabel: { Label: "Inactive" } } }, + ], + }; + var sample_State = { "@odata.type": "#Microsoft.Dynamics.CRM.StateAttributeMetadata", EntityLogicalName: "sample_customtable", LogicalName: "statecode", AttributeType: "State", OptionSet: sample_State_Values }; + var columns_values_CustomTable3 = [sample_State]; + + var sample_Status_Values = { + OptionSetType: "Status", + Options: [ + { Value: 1, Label: { UserLocalizedLabel: { Label: "Active" } } }, + { Value: 2, Label: { UserLocalizedLabel: { Label: "Inactive" } } }, + ], + }; + var sample_Status = { "@odata.type": "#Microsoft.Dynamics.CRM.StatusAttributeMetadata", EntityLogicalName: "sample_customtable", LogicalName: "statuscode", AttributeType: "State", OptionSet: sample_Status_Values }; + var columns_values_CustomTable4 = [sample_Status]; + + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.BooleanAttributeMetadata", + SchemaName: "sample_Boolean", + LogicalName: "sample_boolean", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Boolean", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Two Options" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.MultiSelectPicklistAttributeMetadata", + SchemaName: "sample_Choices", + LogicalName: "sample_choices", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Virtual", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + DisplayName: { UserLocalizedLabel: { Label: "Choices" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.FileAttributeMetadata", + SchemaName: "sample_File", + LogicalName: "sample_file", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Virtual", + IsValidForRead: true, + IsValidForCreate: false, + IsValidForUpdate: false, + MaxSizeInKB: 32768, + DisplayName: { UserLocalizedLabel: { Label: "File" } }, + }); + columns_CustomTable.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "sample_File_Name", + LogicalName: "sample_file_name", + AttributeOf: "sample_file", + AttributeType: "String", + IsValidForCreate: false, + IsValidForRead: true, + IsValidForUpdate: false, + }); + + columns_CustomTable.push({ + SchemaName: "sample_ImageId", + LogicalName: "sample_imageid", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Uniqueidentifier", + IsValidForRead: true, + IsValidForCreate: false, + IsValidForUpdate: false, + }); + columns_CustomTable.push({ + SchemaName: "sample_Image2Id", + LogicalName: "sample_image2id", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "Uniqueidentifier", + IsValidForRead: true, + IsValidForCreate: false, + IsValidForUpdate: false, + }); + + var keys_CustomTable = []; + keys_CustomTable.push({ + SchemaName: "sample_SampleKey1", + LogicalName: "sample_samplekey1", + EntityKeyIndexStatus: "Active", + KeyAttributes: ["sample_name"], + DisplayName: { UserLocalizedLabel: { Label: "Sample Key 1" } }, + }); + keys_CustomTable.push({ + SchemaName: "sample_SampleKey2", + LogicalName: "sample_samplekey2", + EntityKeyIndexStatus: "Active", + KeyAttributes: ["sample_name", "sample_name2"], + DisplayName: { UserLocalizedLabel: { Label: "Sample Key 2" } }, + }); + keys_CustomTable.push({ + SchemaName: "sample_SampleKey3", + LogicalName: "sample_samplekey3", + EntityKeyIndexStatus: "Active", + KeyAttributes: ["sample_name2", "sample_choice", "sample_wholenumber", "sample_contactid", "sample_decimal", "sample_dateandtime"], + DisplayName: { UserLocalizedLabel: { Label: "Sample Key 3" } }, + }); + + var oneToMany_CustomTable = []; + oneToMany_CustomTable.push({ + SchemaName: "sample_sample_customtable_Team", + ReferencingEntity: "team", + ReferencedEntity: "sample_customtable", + ReferencingAttribute: "sample_customtableid", + ReferencedAttribute: "sample_customtableid", + ReferencingEntityNavigationPropertyName: "sample_CustomTableId", + ReferencedEntityNavigationPropertyName: "sample_sample_customtable_Team", + }); + oneToMany_CustomTable.push({ + SchemaName: "sample_sample_customtable_team_CustomTable2", + ReferencingEntity: "team", + ReferencedEntity: "sample_customtable", + ReferencingAttribute: "sample_customtable2", + ReferencedAttribute: "sample_customtableid", + ReferencingEntityNavigationPropertyName: "sample_CustomTable2", + ReferencedEntityNavigationPropertyName: "sample_sample_customtable_team_CustomTable2", + }); + oneToMany_CustomTable.push({ + SchemaName: "sample_sample_customtable_Account", + ReferencingEntity: "account", + ReferencedEntity: "sample_customtable", + ReferencingAttribute: "sample_customtableid", + ReferencedAttribute: "sample_customtableid", + ReferencingEntityNavigationPropertyName: "sample_CustomTableId", + ReferencedEntityNavigationPropertyName: "sample_sample_customtable_Account", + }); + + var manyToOne_CustomTable = []; + manyToOne_CustomTable.push({ + SchemaName: "sample_account_sample_customtable_Customer", + ReferencingEntity: "sample_customtable", + ReferencedEntity: "account", + ReferencingAttribute: "sample_customerid", + ReferencedAttribute: "accountid", + ReferencingEntityNavigationPropertyName: "sample_CustomerId_account", + ReferencedEntityNavigationPropertyName: "sample_account_sample_customtable_Customer", + }); + manyToOne_CustomTable.push({ + SchemaName: "sample_contact_sample_customtable_Customer", + ReferencingEntity: "sample_customtable", + ReferencedEntity: "contact", + ReferencingAttribute: "sample_customerid", + ReferencedAttribute: "contactid", + ReferencingEntityNavigationPropertyName: "sample_CustomerId_contact", + ReferencedEntityNavigationPropertyName: "sample_contact_sample_customtable_Customer", + }); + + var manyToMany_CustomTable = []; + manyToMany_CustomTable.push({ + Entity1LogicalName: "sample_customtable", + Entity2LogicalName: "sample_customtable", + Entity1NavigationPropertyName: "sample_sample_customtable_sample_Customtable1", + Entity2NavigationPropertyName: "sample_sample_customtable_sample_Customtable1", + SchemaName: "sample_sample_customtable_sample_Customtable1", + }); + manyToMany_CustomTable.push({ + Entity1LogicalName: "sample_customtable", + Entity2LogicalName: "contact", + Entity1NavigationPropertyName: "sample_sample_customtable_Contact1", + Entity2NavigationPropertyName: "sample_sample_customtable_Contact1", + SchemaName: "sample_sample_customtable_Contact1", + }); + manyToMany_CustomTable.push({ + Entity1LogicalName: "account", + Entity2LogicalName: "sample_customtable", + Entity1NavigationPropertyName: "sample_account_sample_customTable1", + Entity2NavigationPropertyName: "sample_account_sample_customTable1", + SchemaName: "sample_account_sample_customTable1", + }); + + var columns_CustomTable2 = []; + + columns_CustomTable2.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "new_Name", + LogicalName: "new_name", + IsPrimaryId: false, + IsPrimaryName: true, + AttributeType: "String", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 80, + DisplayName: { UserLocalizedLabel: { Label: "Name (New)" } }, + }); + columns_CustomTable2.push({ + "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata", + SchemaName: "new_Name2", + LogicalName: "new_name2", + IsPrimaryId: false, + IsPrimaryName: false, + AttributeType: "String", + IsValidForRead: true, + IsValidForCreate: true, + IsValidForUpdate: true, + MaxLength: 80, + DisplayName: { UserLocalizedLabel: { Label: "New Name 2 (New)" } }, + }); + + var keys_CustomTable2 = []; + keys_CustomTable2.push({ + SchemaName: "new_SampleKey1", + LogicalName: "new_samplekey1", + EntityKeyIndexStatus: "Active", + KeyAttributes: ["new_name"], + DisplayName: { UserLocalizedLabel: { Label: "Sample Key 1 (New)" } }, + }); + keys_CustomTable2.push({ + SchemaName: "new_SampleKey2", + LogicalName: "new_samplekey2", + EntityKeyIndexStatus: "Active", + KeyAttributes: ["new_name", "new_name2"], + DisplayName: { UserLocalizedLabel: { Label: "Sample Key 2 (New)" } }, + }); + + var fakeData = ""; + queries.forEach(function (query) { + if (query.EntitySetName.indexOf("contact") > -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_Contact)); + var fakeColumns = []; + columns_Contact.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("team") > -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_Team)); + var fakeColumns = []; + columns_Team.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("account") > -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_Account)); + var fakeColumns = []; + columns_Account.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + var fakeOneToMany = []; + oneToMany_Account.forEach(function (relationship) { + fakeOneToMany.push(relationship); + }); + fakeDataQuery.OneToManyRelationships = fakeOneToMany; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("systemuser") > -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_User)); + var fakeColumns = []; + columns_User.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("sample_customtable") > -1) { + if (query.Filters.indexOf("$expand=OptionSet") === -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_CustomTable)); + var fakeColumns = []; + columns_CustomTable.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + var fakeKeys = []; + keys_CustomTable.forEach(function (key) { + fakeKeys.push(key); + }); + fakeDataQuery.Keys = fakeKeys; + var fakeOneToMany = []; + oneToMany_CustomTable.forEach(function (relationship) { + fakeOneToMany.push(relationship); + }); + fakeDataQuery.OneToManyRelationships = fakeOneToMany; + var fakeManyToOne = []; + manyToOne_CustomTable.forEach(function (relationship) { + fakeManyToOne.push(relationship); + }); + fakeDataQuery.ManyToOneRelationships = fakeManyToOne; + var fakeManyToMany = []; + manyToMany_CustomTable.forEach(function (relationship) { + fakeManyToMany.push(relationship); + }); + fakeDataQuery.ManyToManyRelationships = fakeManyToMany; + + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } else { + if (query.EntitySetName.indexOf("BooleanAttributeMetadata") > -1) { + var fakeDataQuery = { value: columns_values_CustomTable }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("Dynamics.CRM.MultiSelectPicklistAttributeMetadata") > -1) { + var fakeDataQuery = { value: columns_values_CustomTable1 }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + if (query.EntitySetName.indexOf("Dynamics.CRM.PicklistAttributeMetadata") > -1) { + var fakeDataQuery = { value: columns_values_CustomTable2 }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + if (query.EntitySetName.indexOf("Dynamics.CRM.StateAttributeMetadata") > -1) { + var fakeDataQuery = { value: columns_values_CustomTable3 }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + if (query.EntitySetName.indexOf("Dynamics.CRM.StatusAttributeMetadata") > -1) { + var fakeDataQuery = { value: columns_values_CustomTable4 }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + } + } + + if (query.EntitySetName.indexOf("new_customtable") > -1) { + var fakeDataQuery = JSON.parse(JSON.stringify(entity_CustomTable2)); + var fakeColumns = []; + columns_CustomTable2.forEach(function (column) { + fakeColumns.push(column); + }); + fakeDataQuery.Attributes = fakeColumns; + var fakeKeys = []; + keys_CustomTable2.forEach(function (key) { + fakeKeys.push(key); + }); + fakeDataQuery.Keys = fakeKeys; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + + // #region Demo Data for Custom APIs + if (query.EntitySetName.indexOf("customapis") > -1) { + var fakeDataQuery = { + value: [{ bindingtype: 0, boundentitylogicalname: null, name: "FetchXMLToSQL", uniquename: "FetchXMLToSQL", isfunction: true }], + }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + if (query.EntitySetName.indexOf("customapirequestparameters") > -1) { + var fakeDataQuery = { + value: [ + { isoptional: false, name: "FetchXml", type: 10, uniquename: "FetchXml", CustomAPIId: { uniquename: "FetchXMLToSQL" } }, + { isoptional: true, name: "SubqueryCompatible", type: 0, uniquename: "SubqueryCompatible", CustomAPIId: { uniquename: "FetchXMLToSQL" } }, + ], + }; + + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + if (query.EntitySetName.indexOf("customapiresponseproperties") > -1) { + var fakeDataQuery = { + value: [{ name: "Response", type: 10, uniquename: "Response", CustomAPIId: { uniquename: "FetchXMLToSQL" } }], + }; + fakeData += fakeHeaderStart + JSON.stringify(fakeDataQuery) + emptyLine; + } + // #endregion + + // #region Demo Data for Custom Actions + if (query.EntitySetName.indexOf("workflows") > -1) { + // TODO + } + if (query.EntitySetName.indexOf("sdkmessagerequestfields") > -1) { + // TODO + } + if (query.EntitySetName.indexOf("sdkmessageresponsefields") > -1) { + // TODO + } + // #endregion + + // #region Demo Data for System Views + if (query.EntitySetName.indexOf("savedqueries") > -1) { + var systemView_Demo = { value: [] }; + if (query.Filters.indexOf("account") > -1) { + systemView_Demo.value.push({ + savedqueryid: "56b534ca-beab-46e6-af0f-07489eaa1585", + name: "Account System View", + returnedtypecode: "account", + isdefault: true, + layoutxml: '' + message + '
' + message + "
"; + DRB.UI.DisplayDialog(null, loadingMessage, null, size); +}; + +/** + * Show a question + * @param {string} title Title + * @param {string} message Message + * @param {string} size Size + * @param {Function} comfirmCallBack Function to call when Yes is pressed + */ +DRB.UI.ShowQuestion = function (title, message, size, comfirmCallBack) { + DRB.UI.DisplayDialog("" + title + "", message, "btn-danger", size, comfirmCallBack, true); +}; + +/** + * Show a question + * @param {string} title Title + * @param {string} message Message + * @param {string} size Size + * @param {Function} comfirmCallBack Function to call when Yes is pressed + */ +DRB.UI.ShowExport = function (title, message, size, comfirmCallBack) { + DRB.UI.DisplayDialog("" + title + "", message, "btn-primary", size, comfirmCallBack, true, "Export", "Cancel"); +}; + +/** + * Hide Loading + */ +DRB.UI.HideLoading = function () { + bootbox.hideAll(); +}; +// #endregion + +// #region HTML Helpers +/** + * UI - Create a spacer + */ +DRB.UI.CreateSpacer = function () { + return $("