---
id: object/table/5389
type: object
title: Table 5389 "CRM Role"
summary: Table 5389 "CRM Role" in Base Application (Microsoft.Integration.D365Sales). 17 fields. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "24"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 8ce119c2e34b4b0b958d9347d670a888aece6b84a0a9aa75a267642a3309622a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMRole.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMRole.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5389
name: CRM Role
caption: Security Role
namespace: Microsoft.Integration.D365Sales
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 17
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 3
  referenced_by: 3
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5389 "CRM Role"

> Table 5389 "CRM Role" in Base Application (Microsoft.Integration.D365Sales). 17 fields. Present since at least BC23, still in BC30, changed in BC24.

Base Application · Microsoft.Integration.D365Sales · captioned "Security Role" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMRole.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Security Role |
| TableType | CRM |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | RoleId | Guid | Role <small>caption</small> | DataClassification SystemMetadata |
| 2 | OrganizationId | Guid | Organization <small>caption</small> | DataClassification SystemMetadata |
| 3 | Name | Text[100] | — | DataClassification SystemMetadata |
| 4 | CreatedOn | DateTime | Created On <small>caption</small> | DataClassification SystemMetadata |
| 5 | ModifiedOn | DateTime | Modified On <small>caption</small> | DataClassification SystemMetadata |
| 6 | VersionNumber | BigInteger | Version number <small>caption</small> | DataClassification SystemMetadata |
| 7 | ParentRoleId | Guid | Parent Role <small>caption</small> | TableRelation [Table 5389 "CRM Role"](../table/5389.md) ("CRM Role".RoleId); DataClassification SystemMetadata |
| 8 | OverriddenCreatedOn | DateTime | Record Created On <small>caption</small> | DataClassification SystemMetadata |
| 9 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> | DataClassification SystemMetadata |
| 10 | OverwriteTime | DateTime | Record Overwrite Time <small>caption</small> | DataClassification SystemMetadata |
| 11 | ComponentState | Option | Component State <small>caption</small> | OptionCaption: ,Published,Unpublished,Deleted,Deleted Unpublished; DataClassification SystemMetadata |
| 12 | SolutionId | Guid | Solution <small>caption</small> | DataClassification SystemMetadata |
| 13 | RoleIdUnique | Guid | Unique Id <small>caption</small> | DataClassification SystemMetadata |
| 14 | ParentRootRoleId | Guid | Parent Root Role <small>caption</small> | TableRelation [Table 5389 "CRM Role"](../table/5389.md) ("CRM Role".RoleId); DataClassification SystemMetadata |
| 15 | IsManaged | Boolean | State <small>caption</small> | DataClassification SystemMetadata |
| 16 | RoleTemplateId | Guid | Role Template ID <small>caption</small> | DataClassification SystemMetadata |
| 17 | BusinessUnitId | Guid | Business Unit <small>caption</small> | TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md) ("CRM Businessunit".BusinessUnitId); DataClassification OrganizationIdentifiableInformation |

## Keys

- Key1: RoleId (clustered)
- Key2: Name

## Relations

- BusinessUnitId: TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md)
- ParentRoleId: TableRelation [Table 5389 "CRM Role"](../table/5389.md)
- ParentRootRoleId: TableRelation [Table 5389 "CRM Role"](../table/5389.md)

## Referenced by

3 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 5389 "CRM Role"](../table/5389.md): ParentRoleId, ParentRootRoleId
- [Table 5396 "CDS Teamroles"](../table/5396.md): RoleId

## Pages and codeunits on this table

- [Page 7205 "CDS Integration User Roles"](../page/7205.md) (source table)
- [Page 7206 "CDS Owning Team Roles"](../page/7206.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "CRM Role")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
