Skip to main content

Entities

App​

App entity represents a Business Central app. The entity contains the following fields:

NameTypeDescription
App IDText[36]The unique identifier of the app.
NameText[250]The name of the app.
PublisherText[250]The publisher of the app.
VersionsIntegerIdentifies 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:

NameTypeDescription
User IDCode[50]The unique identifier of the user.
AppIDText[36]The unique identifier of the app.
NameText[250]The name of the app.
PublisherText[250]The publisher of the app.
VersionsIntegerIdentifies 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:

NameTypeDescription
App IDText[36]The unique identifier of the app.
Version MajorIntegerThe major version of the app.
Version MinorIntegerThe minor version of the app.
Version BuildIntegerThe build version of the app.
Version RevisionIntegerThe revision version of the app.
Source ProviderEnumThe source provider of the app.
SourceBlobThe 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:

NameTypeDescription
IDText[36]The unique identifier of the tenant.
NameText[250]The name of the tenant.
GroupCode[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:

NameTypeDescription
User IDCode[50]The unique identifier of the user.
Tenant IDText[36]The unique identifier of the tenant.
NameText[250]The name of the tenant.

Tenant Group​

Tenant Group entity represents a group of tenants. The entity contains the following fields:

NameTypeDescription
CodeCode[10]The unique identifier of the tenant group.
DescriptionText[100]The description of the tenant group.
EditRoleIDCode[20]Permission Set ID of an autogenerated permission set that can be used to limit access to edit tenants in the group.
ViewRoleIDCode[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:

NameTypeDescription
CodeCode[10]The unique identifier of the connection.
TypeEnumThe 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:

NameTypeDescription
ConnectionCode[10]The unique identifier of the connection.
TenantText[36]The unique identifier of the tenant.
TypeEnumThe 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:

NameTypeDescription
EntryNoBigIntegerThe unique identifier of the request (auto-incremented).
ConnectionCodeCode[10]The connection code identifying which connection to use for the request.
MethodEnum (Http Method)The HTTP method of the request (GET, POST, PUT, PATCH, DELETE).
PathText[2048]The relative path to be appended to the base URL from the connection.
ContentBlobThe HTTP body content of the request.
NotBeforeDateTimeThe earliest date and time when the request should be executed. Used for scheduling.
RepeatEveryDurationThe interval between repeated requests. Used for recurring operations.
StateEnum (RequestState_TSL)Current state of the request: Queued, Processing, Completed, or Failed.
ErrorMessageText[2048]Error message if the request failed.
BatchIdentifierIntegerGroups related requests together for batch processing.
TenantIDText[36]The tenant ID associated with this request.
TenantGroupCodeCode[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:

NameTypeDescription
ConnectionCode[10]The unique identifier of the connection.
TenantText[36]The unique identifier of the tenant that can use this connection.
TypeEnum (ConnectionType_TSL)The type of the connection (for reference).
StateEnumThe state of the request.
ErrorMessageText[2048]The error message of the request.
BatchIdentifierIntegerThe batch identifier of the request. Enables running multiple request handling job queues in parallel.
TenantIDText[36]Tenant ID of the request.
TenantGroupCodeCode[10]Tenant group code of the request.