Entities
App
App entity represents a Business Central app. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| App ID | Text[36] | The unique identifier of the app. |
| Name | Text[250] | The name of the app. |
| Publisher | Text[250] | The publisher of the app. |
| Versions | Integer | Identifies how many versions of the app are available. |
My App entity enables users to select a subset of apps that are relevant to them. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| User ID | Code[50] | The unique identifier of the user. |
| AppID | Text[36] | The unique identifier of the app. |
| Name | Text[250] | The name of the app. |
| Publisher | Text[250] | The publisher of the app. |
| Versions | Integer | Identifies how many versions of the app are available. |
App Version
App Version entity represents a version of a Business Central app. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| App ID | Text[36] | The unique identifier of the app. |
| Version Major | Integer | The major version of the app. |
| Version Minor | Integer | The minor version of the app. |
| Version Build | Integer | The build version of the app. |
| Version Revision | Integer | The revision version of the app. |
| Source Provider | Enum | The source provider of the app. |
| Source | Blob | The source of the app when Source Provider is set to Blob. |
ISourceProvider_TSL interface enables plugins to define a behavior of how to get the app source based on the source provider.
Tenant
Tenant entity represents a any managed entra tenant. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| ID | Text[36] | The unique identifier of the tenant. |
| Name | Text[250] | The name of the tenant. |
| Group | Code[10] | The group of the tenant. |
My Tenant entity enables users to select a subset of tenants that are relevant to them. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| User ID | Code[50] | The unique identifier of the user. |
| Tenant ID | Text[36] | The unique identifier of the tenant. |
| Name | Text[250] | The name of the tenant. |
Tenant Group
Tenant Group entity represents a group of tenants. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| Code | Code[10] | The unique identifier of the tenant group. |
| Description | Text[100] | The description of the tenant group. |
| EditRoleID | Code[20] | Permission Set ID of an autogenerated permission set that can be used to limit access to edit tenants in the group. |
| ViewRoleID | Code[20] | Permission Set ID of an autogenerated permission set that can be used to limit access to view tenants in the group. |
Connection
Connection entity represents a connection to an external service. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| Code | Code[10] | The unique identifier of the connection. |
| Type | Enum | The type of the connection. |
IConnectionClient_TSL interface enables plugins to define a behavior for the connection entity based on the connection type.
Connection Tenant entity enables to limit the use of connection to a specific tenant. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| Connection | Code[10] | The unique identifier of the connection. |
| Tenant | Text[36] | The unique identifier of the tenant. |
| Type | Enum | The type of the connection. |
Request
Request entity represents a request to an external service. Any time a plugin needs to perform an operation on an external service, it creates a request which is then handled by the request handling job queue using the relevant connection. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| EntryNo | BigInteger | The unique identifier of the request (auto-incremented). |
| ConnectionCode | Code[10] | The connection code identifying which connection to use for the request. |
| Method | Enum (Http Method) | The HTTP method of the request (GET, POST, PUT, PATCH, DELETE). |
| Path | Text[2048] | The relative path to be appended to the base URL from the connection. |
| Content | Blob | The HTTP body content of the request. |
| NotBefore | DateTime | The earliest date and time when the request should be executed. Used for scheduling. |
| RepeatEvery | Duration | The interval between repeated requests. Used for recurring operations. |
| State | Enum (RequestState_TSL) | Current state of the request: Queued, Processing, Completed, or Failed. |
| ErrorMessage | Text[2048] | Error message if the request failed. |
| BatchIdentifier | Integer | Groups related requests together for batch processing. |
| TenantID | Text[36] | The tenant ID associated with this request. |
| TenantGroupCode | Code[10] | The tenant group code (for security filtering). |
Request States
Requests progress through the following states:
- Queued - Request is waiting to be processed
- Processing - Request is currently being executed
- Completed - Request has been successfully processed
- Failed - Request encountered an error during processing
Keys and Indexes
- PK: EntryNo (clustered)
- BatchExecRequestQueue: State, BatchIdentifier, NotBefore
- SetRange: State, ConnectionCode, TenantID, Method, Path
- UIFilters: TenantGroupCode, TenantID
Connection Tenant
Connection Tenant entity limits the use of a specific connection to designated tenants. When defined, only listed tenants can use that connection. The entity contains the following fields:
| Name | Type | Description |
|---|---|---|
| Connection | Code[10] | The unique identifier of the connection. |
| Tenant | Text[36] | The unique identifier of the tenant that can use this connection. |
| Type | Enum (ConnectionType_TSL) | The type of the connection (for reference). |
| State | Enum | The state of the request. |
| ErrorMessage | Text[2048] | The error message of the request. |
| BatchIdentifier | Integer | The batch identifier of the request. Enables running multiple request handling job queues in parallel. |
| TenantID | Text[36] | Tenant ID of the request. |
| TenantGroupCode | Code[10] | Tenant group code of the request. |